Function used by GDB to access target sim memory

William Tambe
2019-08-18T17:55:52Z

What function does GDB use to access the simulator memory when "target
sim" is in use ?

For instance, to implement the access to the simulator registers, one must use:
CPU_REG_FETCH()
CPU_REG_STORE()

Are there similar functions for accessing the simulator memory ?