|
From: Philippe W. <phi...@so...> - 2022-12-23 15:15:52
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=7e03a15d8d4f9a6fb50b59353a13f93ed0bafc3c commit 7e03a15d8d4f9a6fb50b59353a13f93ed0bafc3c Author: Philippe Waroquiers <phi...@sk...> Date: Fri Dec 23 16:12:53 2022 +0100 Pass a dummy process_option_state for dynamic options The process_option_state is functionally needed during initial parsing of CLO options. When later changing them, only changing the CLO itself is good enough. But the processing of option needs to have a state. Diff: --- coregrind/m_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coregrind/m_main.c b/coregrind/m_main.c index f02a8b0eb5..2b4a8748ff 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -889,9 +889,9 @@ static void process_option (Clo_Mode mode, void VG_(process_dynamic_option) (Clo_Mode mode, HChar *value) { - process_option (mode, value, NULL); - // This is not supposed to change values in process_option_state, - // so we can give a NULL. + struct process_option_state dummy; + process_option (mode, value, &dummy); + // No need to handle a process_option_state once valgrind has started. } /* Peer at previously set up VG_(args_for_valgrind) and do some |