This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb watch command packet communication
- From: IAPT-Sreerama Shailaja <sreerama dot shailaja at iap-online dot com>
- To: gdb at sourceware dot org
- Date: Tue, 25 Nov 2008 22:13:01 -0500 (EST)
- Subject: gdb watch command packet communication
Hi,
The RSP packet to read the memory is
Maddr,length:XX... -- write mem
Here addr is the address.
gdb)watch x
Sending packet: $Z2,1,4#49...Ack
Packet received: E10
so here address is 1.
If we look at the flow in gdb source, the function remote_xfer_partial()
calls
xfered = remote_xfer_memory (offset, readbuf, len, 0, NULL, ops);
Here the offset value is 1. this value is used as address while makeing
RSP "m" packet.
Here my question is, the RSP packet can contain the offset value ? instead
of actual target address ?
Thanks in Advance
Shailaja