aboutsummaryrefslogtreecommitdiff
path: root/sim/gdbinit.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-17 00:35:31 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-21 13:57:33 -0500
commit216722984fec8aa76e2d97d7b8fcc2fb1608825b (patch)
treeb6321ba1b75e3f1fd0f6eb84c18bfcf32e33f11a /sim/gdbinit.in
parent144459531dd68a1287905079aaa131b777a8cc82 (diff)
downloadgdb-216722984fec8aa76e2d97d7b8fcc2fb1608825b.zip
gdb-216722984fec8aa76e2d97d7b8fcc2fb1608825b.tar.gz
gdb-216722984fec8aa76e2d97d7b8fcc2fb1608825b.tar.bz2
sim: gdbinit: hoist setup to common code
This was left in subdirs because of the dynamic cgen usage. However, we can move this breakpoint call to runtime and let gdb detect whether the symbol exists.
Diffstat (limited to 'sim/gdbinit.in')
-rw-r--r--sim/gdbinit.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/sim/gdbinit.in b/sim/gdbinit.in
new file mode 100644
index 0000000..f9cd5f3
--- /dev/null
+++ b/sim/gdbinit.in
@@ -0,0 +1,14 @@
+break sim_io_error
+break sim_core_signal
+# This symbol won't exist for non-cgen ports, but shouldn't be a big deal
+# (other than gdb showing a warning on startup).
+break cgen_rtx_error
+
+define dump
+set sim_debug_dump ()
+end
+
+document dump
+Dump cpu and simulator registers for debugging the simulator.
+Requires the simulator to provide function sim_debug_dump.
+end