aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-linux-tdep.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2006-04-09 08:22:43 +0000
committerDavid S. Miller <davem@redhat.com>2006-04-09 08:22:43 +0000
commitb2a0b9b2f6b8aa65d0b9dec5102ed66d64073d1c (patch)
treee43f43afa8e758d18b701b2eea41350d03e44296 /gdb/sparc64-linux-tdep.c
parentee1b3323e66265153132e886875197c10294ff32 (diff)
downloadgdb-b2a0b9b2f6b8aa65d0b9dec5102ed66d64073d1c.zip
gdb-b2a0b9b2f6b8aa65d0b9dec5102ed66d64073d1c.tar.gz
gdb-b2a0b9b2f6b8aa65d0b9dec5102ed66d64073d1c.tar.bz2
* sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
frame sniffer. * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so that the latter can override. * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
Diffstat (limited to 'gdb/sparc64-linux-tdep.c')
-rw-r--r--gdb/sparc64-linux-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/sparc64-linux-tdep.c b/gdb/sparc64-linux-tdep.c
index dd3b622..850f045 100644
--- a/gdb/sparc64-linux-tdep.c
+++ b/gdb/sparc64-linux-tdep.c
@@ -22,6 +22,7 @@
#include "defs.h"
#include "frame.h"
#include "frame-unwind.h"
+#include "dwarf2-frame.h"
#include "regset.h"
#include "regcache.h"
#include "gdbarch.h"
@@ -195,6 +196,9 @@ sparc64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tramp_frame_prepend_unwinder (gdbarch, &sparc64_linux_rt_sigframe);
+ /* Hook in the DWARF CFI frame unwinder. */
+ frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);
+
sparc64_init_abi (info, gdbarch);
/* GNU/Linux has SVR4-style shared libraries... */