Feature suggestion: location conditioned watchpoint
Etienne Buira
etienne.buira.lists@free.fr
Sat Oct 19 07:35:40 GMT 2024
Hi all,
I tried to debug memory corruption issue with gdb, using watchpoints,
and as the bug appeared rarely, i wish i could state "break on this
memloc write, if it is not this known good location".
I searched the docs for conditions and convenience variables, but could
not find anything useful.
Ideally, i would like to issue a command like:
condition WPNUM !(location path/to/myfile.c:42)
If there is already a way to do this, i'd like to hear about it, or
please consider it as feature suggestion.
Unfortunately, the bug did not show up when ran under gdb supervision,
even after enabling memory space randomisation, but that's another
topic.
Regards.
More information about the Gdb
mailing list