aboutsummaryrefslogtreecommitdiff
path: root/gas/gdbinit.in
diff options
context:
space:
mode:
Diffstat (limited to 'gas/gdbinit.in')
-rw-r--r--gas/gdbinit.in39
1 files changed, 39 insertions, 0 deletions
diff --git a/gas/gdbinit.in b/gas/gdbinit.in
new file mode 100644
index 0000000..e946726
--- /dev/null
+++ b/gas/gdbinit.in
@@ -0,0 +1,39 @@
+dir @srcdir@
+dir .
+
+break as_warn
+break as_warn_where
+break as_bad
+break as_bad_where
+break as_fatal
+break as_perror
+break as_assert
+break as_abort
+
+define pe
+call print_expr ($)
+end
+
+document pe
+Print *$ as an expressionS, expanding parameters.
+end
+
+define ps
+call print_symbol_value ($)
+end
+
+document ps
+Print *$ as a symbolS, including expression value.
+end
+
+define pf
+call print_fixup ($)
+end
+
+document pf
+Print *$ as a fixS, including symbol value.
+end
+
+# Put this last, in case it fails.
+
+break abort