This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: watch -location


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]