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.
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