This is the mail archive of the gdb@sources.redhat.com 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]

Re: REMOTE_TRANSLATE_XFER_ADDRESS()


"J.T. Conklin" wrote:
> 
> Assuming we adopt something like the step over range packet for the
> remote protocol, must the addresses that bound the range be translated
> from the GDB's internal representation to the target's representation?
> remote_xfer_memory() does this for memory reads and writes.
> 
> If so, how would one go about this.  REMOTE_TRANSLATE_XFER_ADDRESS()
> takes an address and a length.  I don't know what I would use for a
> length --- actually I don't understand the length part at all, even
> for memory transfers.

The virtual->physical translation may not apply for the entire length of
the transfer. When this occures the target should prune the transfer to
just the correct number of bytes.

	Andrew


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