diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-29 23:52:57 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-07 12:18:59 -0500 |
commit | e904f56d02afd68ffd9333435fe8b026f1e14b5f (patch) | |
tree | 21af166171abe5a1aa80ed2b2b37b8cbc9b64bcf /include/gdb/remote-sim.h | |
parent | f478212851a25cd9849ad7f41112d08f91ab308b (diff) | |
download | fsf-binutils-gdb-e904f56d02afd68ffd9333435fe8b026f1e14b5f.zip fsf-binutils-gdb-e904f56d02afd68ffd9333435fe8b026f1e14b5f.tar.gz fsf-binutils-gdb-e904f56d02afd68ffd9333435fe8b026f1e14b5f.tar.bz2 |
gdb/sim: add support for exporting memory map
This allows gdb to quickly dump & process the memory map that the sim
knows about. This isn't fully accurate, but is largely limited by the
gdb memory map format. While the sim supports RWX bits, gdb can only
handle RW or RO regions.
Diffstat (limited to 'include/gdb/remote-sim.h')
-rw-r--r-- | include/gdb/remote-sim.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h index 73fb670..a3ba3aa 100644 --- a/include/gdb/remote-sim.h +++ b/include/gdb/remote-sim.h @@ -213,6 +213,15 @@ int sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length); void sim_info (SIM_DESC sd, int verbose); +/* Return a memory map in XML format. + + The caller must free the returned string. + + For details on the format, see GDB's Memory Map Format documentation. */ + +char *sim_memory_map (SIM_DESC sd); + + /* Run (or resume) the simulated program. STEP, when non-zero indicates that only a single simulator cycle |