Re: remote watchpoint

Yao Qi <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Juha Aaltonen <[email protected]> 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 (齐尧)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.