projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc4e1fd
)
sim: Add sim_dump_memory for debugging
author
Hans-Peter Nilsson
<hp@axis.com>
Mon, 14 Feb 2022 22:51:15 +0000
(23:51 +0100)
committer
Hans-Peter Nilsson
<hp@bitrange.com>
Mon, 14 Feb 2022 22:51:15 +0000
(23:51 +0100)
Intended to be called from the debugger tool.
sim/common:
* sim-memopt.c (sim_dump_memory): New function.
sim/common/sim-memopt.c
patch
|
blob
|
history
diff --git
a/sim/common/sim-memopt.c
b/sim/common/sim-memopt.c
index 342188391d73f1c2d7208908ecbb2ad2f3f1e89d..62423421cf9c8b8d800172a87b79e8c1aba1b5d8 100644
(file)
--- 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)