Re: Function used by GDB to access target sim memory
William Tambe <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAF8i9mM7u9ikdwc1xcKWy9f27+inMTK0t2Zc9DPagcXsVKFCcA@mail.gmail.com> |
To expand on my previous email, I am looking to implement an address translation layer between GDB and the simulator memory. Is there a way to set a function that gets called when a request to access the simulator memory occur ? On Sun, Aug 18, 2019 at 12:55 PM William Tambe <[email protected]> wrote: > > 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 ?