This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch]: inform user that a watchpoint is hit
Doug Evans wrote:
So in cvs head I'm not seeing a problem (though maybe there's more
needed to recreate it).
Which version of gdb are you using?
[Also, I haven't researched this, but maybe there's some overlap here with
http://sourceware.org/ml/gdb-patches/2009-08/msg00254.html.
Dunno. Doesn't seem like it but thought I'd point it out.]
Hello Doug,
Thanks for trying the test program. What I was referring to was
the messages like the following to be outputted on the screen with
the patch applied..
Program exited normally.
(gdb) r
Starting program: /home/chandru/r
Hardware access (read/write) watchpoint 2: value1
Hardware read watchpoint 3: value1
Hardware access (read/write) watchpoint 2: value1
Hardware read watchpoint 3: value1
Hardware access (read/write) watchpoint 2: value1
Hardware read watchpoint 3: value1
Hardware access (read/write) watchpoint 2: value1
Hardware read watchpoint 3: value1
Hardware access (read/write) watchpoint 2: value1
Hardware read watchpoint 3: value1
Hardware access (read/write) watchpoint 2: value1
Hardware read watchpoint 3: value1
Breakpoint 1, main () at rwatch.c:20
20 value1 =3;
(gdb)
I was using a distribution supplied gdb-6.8.50 and found that upstream
gdb shows the same behaviour. gdb-6.6 outputs these messages
without the patch when a program is restarted.
Thanks,
Chandru