Bug 411134 - Allow the user to change a set of command line options during execution.
Summary: Allow the user to change a set of command line options during execution.
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-21 12:41 UTC by Philippe Waroquiers
Modified: 2019-08-31 13:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to implement dynamically changeable options (154.74 KB, text/plain)
2019-08-21 12:41 UTC, Philippe Waroquiers
Details
patch to implement dynamically changeable options, without whitespace changes (86.02 KB, patch)
2019-08-31 10:46 UTC, Julian Seward
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Waroquiers 2019-08-21 12:41:40 UTC
Created attachment 122275 [details]
patch to implement dynamically changeable options

The attached patch changes the command line option framework and parsing
code to allow to change (some) command line options dynamically.

Here is a summary of the new functionality (extracted from NEWS):
* It is now possible to dynamically change the value of many command
  line options while your program (or its children) are running under
  Valgrind.
  To have the list of dynamically changeable options, run
     valgrind --help-dyn-options
  You can change the options from the shell by using vgdb to launch
  the monitor command "v.clo <clo option>...".
  The same monitor command can be used from a gdb connected
  to the valgrind gdbserver.
  Your program can also change the dynamically changeable options using
  the client request VALGRIND_CLO_CHANGE(option).
Comment 1 Philippe Waroquiers 2019-08-21 13:01:50 UTC
For background info, see discussion with MariaDB developers
https://sourceforge.net/p/valgrind/mailman/message/36738630/
and a similar discussion on StackOverflow
https://stackoverflow.com/questions/57245062/suppress-leak-check-in-a-specific-forked-child
Comment 2 Julian Seward 2019-08-31 10:46:32 UTC
Created attachment 122434 [details]
patch to implement dynamically changeable options, without whitespace changes
Comment 3 Philippe Waroquiers 2019-08-31 13:16:58 UTC
Pushed as 3a803036f