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]

info watch command


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


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