[binutils-gdb] sim: Add sim_dump_memory for debugging
Hans-Peter Nilsson
hp@sourceware.org
Mon Feb 14 22:55:02 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=81011383d94b2f630cd8fdad989f2e24d4889c1e
commit 81011383d94b2f630cd8fdad989f2e24d4889c1e
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Mon Feb 14 23:51:15 2022 +0100
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.
Diff:
---
sim/common/sim-memopt.c | 10 ++++++++++
1 file changed, 10 insertions(+)
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)
More information about the Gdb-cvs
mailing list