This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]