aboutsummaryrefslogtreecommitdiff
path: root/gas/.gdbinit
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-09-13 01:50:02 +0000
committerKen Raeburn <raeburn@cygnus>1994-09-13 01:50:02 +0000
commitdacf29ea1fe447ea5a00217054e9e892eaffaca2 (patch)
tree432e72df8ec476f280358103f44a4e8a6f81e93a /gas/.gdbinit
parent2ff6b38acb8cc82e3b577f0f42b98735feb821c3 (diff)
downloadgdb-dacf29ea1fe447ea5a00217054e9e892eaffaca2.zip
gdb-dacf29ea1fe447ea5a00217054e9e892eaffaca2.tar.gz
gdb-dacf29ea1fe447ea5a00217054e9e892eaffaca2.tar.bz2
* .gdbinit (pe, ps): Define new commands.
* symbols.c (indent_level): New static variable. (indent, print_expr_1, print_symbol_value_1, print_symbol_value, print_expr): New functions.
Diffstat (limited to 'gas/.gdbinit')
-rw-r--r--gas/.gdbinit16
1 files changed, 16 insertions, 0 deletions
diff --git a/gas/.gdbinit b/gas/.gdbinit
index f4f9906..a8b88f4 100644
--- a/gas/.gdbinit
+++ b/gas/.gdbinit
@@ -4,3 +4,19 @@ break as_bad_where
break as_fatal
break as_perror
break 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