remote watchpoint

Yao Qi qiyaoltc@gmail.com
Mon Nov 9 15:05:00 GMT 2015


Juha Aaltonen <turbopultti@gmail.com> 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 

https://sourceware.org/gdb/current/onlinedocs/gdb/Stop-Reply-Packets.html

> 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
https://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html

-- 
Yao (齐尧)



More information about the Gdb mailing list