torkell: (Default)
Thomas ([personal profile] torkell) wrote2009-09-14 09:22 pm
Entry tags:

More gdb fail

This set of commands, run in a fresh gdb instance and intended to set a conditional watchpoint, results in gdb segfaulting leaving an orphaned debuggee running:

(gdb) watch function::variable if function::variable == 0xff
(gdb) run


This set of commands, again in a fresh gdb instance, works:

(gdb) info address variable
(gdb) info address function::variable
(gdb) whatis variable
(gdb) whatis function::variable
(gdb) watch function::variable if function::variable == 0xff
(gdb) run


Discuss.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting