aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-29 21:42:31 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-29 21:42:31 +0000
commit63757ecd89305170447e581bde5b965061da983b (patch)
tree879c08a20c1fd31bfc4558940b10a9ee69f2e9f7 /gdb/hppa-tdep.c
parent54a11a1df0a43316a688414197b1d5b67a281c0e (diff)
downloadgdb-63757ecd89305170447e581bde5b965061da983b.zip
gdb-63757ecd89305170447e581bde5b965061da983b.tar.gz
gdb-63757ecd89305170447e581bde5b965061da983b.tar.bz2
* hppa-tdep.c: Make "maintenance print unwind" command from old
"unwind" command.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 4def91a..e8b3893 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1004,6 +1004,8 @@ skip_prologue(pc)
return pc;
}
+#ifdef MAINTENANCE_CMDS
+
static void
unwind_command (exp, from_tty)
char *exp;
@@ -1034,3 +1036,13 @@ unwind_command (exp, from_tty)
printf ("%08x\n%08X\n%08X\n%08X\n", xxx.foo[0], xxx.foo[1], xxx.foo[2],
xxx.foo[3]);
}
+
+void
+_initialize_hppa_tdep ()
+{
+ add_cmd ("unwind", class_maintenance, unwind_command,
+ "Print unwind table entry at given address.",
+ &maintenanceprintlist);
+}
+
+#endif /* MAINTENANCE_CMDS */