Bug 508093 - VALGRIND_CLO_CHANGE does not update vex_control
Summary: VALGRIND_CLO_CHANGE does not update vex_control
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Florian Krohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-10 20:41 UTC by Florian Krohm
Modified: 2025-08-11 18:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
add LibVEX_set_VexControl (1.41 KB, patch)
2025-08-10 20:41 UTC, Florian Krohm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Krohm 2025-08-10 20:41:46 UTC
Created attachment 183941 [details]
add LibVEX_set_VexControl

VALGRIND_CLO_CHANGE("--vex-iropt-verbosity=5");  has no effect on vex_control.iropt_verbosity

Attached patch adds function LibVEX_set_VexControl and calls it at the end of process_dynamic_option.

The alternative would have been to expose the declaration of vex_control to libvex.h. However, until now, VEX global variables are not exposed so I chose to keep it that way.
Comment 1 Florian Krohm 2025-08-11 18:55:06 UTC
Fixed in a2f8e48b19cb3ae6a2984354f4cadbc23cf631cb