watch -location

Tom Tromey tromey@redhat.com
Mon Jan 23 21:07:00 GMT 2012


>>>>> "Jed" == Jed Brown <jed@59A2.org> writes:

Jed> I was surprised when I upgraded to 7.3.1 that my common pattern of
Jed> (gdb) print &obj->member
Jed> $1 = (int *) 0x6fcf04
Jed> (gdb) watch *$1

Jed> I like the new method, but why did the old method stop working? It
Jed> makes some old debugging documentation incorrect.

As far as I know, nothing has changed here.
If you have a reproducible test case, please file a bug.

Jed> (gdb) info watchpoints
Jed> Num     Type           Disp Enb Address            What
Jed> 3       hw watchpoint  keep y                      -location obj->member

Jed> Could the address of obj->member be printed in this output?

Nice idea.  Could you file a (separate) bug for this as well?

Tom



More information about the Gdb mailing list