Function used by GDB to access target sim memory

Pedro Alves
Mon Aug 19 19:18:00 GMT 2019

On 8/18/19 6:55 PM, William Tambe wrote:
> What function does GDB use to access the simulator memory when "target
> sim" is in use ?

The interface between gdb and the sim is all in gdb/remote-sim.c.
Sounds like you're looking for gdbsim_xfer_memory.

> For instance, to implement the access to the simulator registers, one must use:
> Are there similar functions for accessing the simulator memory ?

Pedro Alves

More information about the Gdb mailing list