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 (齐尧)