diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2022-02-14 23:51:15 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2022-02-14 23:51:15 +0100 |
commit | 81011383d94b2f630cd8fdad989f2e24d4889c1e (patch) | |
tree | e7a4f0b09c8e1c21895298998f2082ca3793010a /sim/common/sim-memopt.c | |
parent | dc4e1fde36d7eb1a5ae2064b3ec545b1b0fcee8a (diff) | |
download | binutils-gdb-81011383d94b2f630cd8fdad989f2e24d4889c1e.tar.gz |
sim: Add sim_dump_memory for debugging
Intended to be called from the debugger tool.
sim/common:
* sim-memopt.c (sim_dump_memory): New function.
Diffstat (limited to 'sim/common/sim-memopt.c')
-rw-r--r-- | sim/common/sim-memopt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/common/sim-memopt.c b/sim/common/sim-memopt.c index 342188391d7..62423421cf9 100644 --- a/sim/common/sim-memopt.c +++ b/sim/common/sim-memopt.c @@ -639,6 +639,16 @@ sim_memory_uninstall (SIM_DESC sd) } } +void sim_dump_memory (SIM_DESC sd); + +/* Convenience function for use when debugging the simulator. */ + +void +sim_dump_memory (SIM_DESC sd) +{ + memory_option_handler (sd, NULL, OPTION_MEMORY_INFO, NULL, 0); + memory_option_handler (sd, NULL, OPTION_MAP_INFO, NULL, 0); +} static SIM_RC sim_memory_init (SIM_DESC sd) |