remote watchpoint

Yao Qi
Mon Nov 9 15:05:00 GMT 2015

Juha Aaltonen <> writes:

> How does a remote server/stub tell gdb which watchpoint fired?

The stub sends stop reply back to GDB with 'watch', 'rwatch' and
'awatch', see details in

> Also, how does gdb know how many breakpoints/watchpoints are available?

In the remote debugging, GDB doesn't know how many
breakpoint/watchpoints available, but it can tell from the reply of Z
packet.  See more descriptions on Z packets

Yao (齐尧)

More information about the Gdb mailing list