info watch command

raja.saleru
2009-01-20T08:36:29Z

Hi,

I am having query on "info watch command". consider the below sample

(gdb) watch x
Hardware watchpoint 2: x
(gdb) rwatch y
Hardware read watchpoint 3: y
(gdb) awatch c
Hardware access (read/write) watchpoint 4: c

(gdb) info watch
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000542 in main at test.c:10
breakpoint already hit 1 time
2 hw watchpoint keep y x
3 read watchpoint keep y y
4 acc watchpoint keep y c

by default, it will be hardware watchpoint. for the "info watch" command,
only for watch it is showing as "hw watchpoint". however why it is not
differentiated for rwatch as "read watchpoint" "hw read watchpoint" ?

similarly for awatch.

For write watchpoint, there is differentiation.

Thanks in advance
Raja Saleru