aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2006-04-05 20:27:08 +0000
committerDavid S. Miller <davem@redhat.com>2006-04-05 20:27:08 +0000
commitfaea95b19b801d56b2613869cf5fe70c872ad1b7 (patch)
tree8a15b70854c330e8422bc775a6f744377ee24e44 /gdb
parentaff37fc18f86e6a07749f9243124fb126b3330c2 (diff)
downloadgdb-faea95b19b801d56b2613869cf5fe70c872ad1b7.zip
gdb-faea95b19b801d56b2613869cf5fe70c872ad1b7.tar.gz
gdb-faea95b19b801d56b2613869cf5fe70c872ad1b7.tar.bz2
* sparc-linux-tdep.c (sparc32_linux_init_abi): Append
dwarf2 frame sniffer. * Makefile.in (sparc-linux-tdep.o): Update dependencies.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/Makefile.in16
-rw-r--r--gdb/sparc-linux-tdep.c4
3 files changed, 15 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 18ce844..32e40c6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -24,6 +24,9 @@
(sparc_dwarf2_frame_init_reg): Use it to determine if the function
returns a structure and thus we have to indicate the return PC and
NPC are 4 bytes later than usual.
+ * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
+ dwarf2 frame sniffer.
+ * Makefile.in (sparc-linux-tdep.o): Update dependencies.
2006-04-04 David S. Miller <davem@davemloft.net>
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 09a2a3d..a7ee54d 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2641,10 +2641,10 @@ sparc64-tdep.o: sparc64-tdep.c $(defs_h) $(arch_utils_h) $(dwarf2_frame_h) \
sparc-linux-nat.o: sparc-linux-nat.c $(defs_h) $(regcache_h) $(gregset_h) \
$(sparc_tdep_h) $(sparc_nat_h) $(inferior_h) $(target_h) \
$(linux_nat_h)
-sparc-linux-tdep.o: sparc-linux-tdep.c $(defs_h) $(floatformat_h) $(frame_h) \
- $(frame_unwind_h) $(gdbarch_h) $(gdbcore_h) $(osabi_h) $(regcache_h) \
- $(solib_svr4_h) $(symtab_h) $(trad_frame_h) $(tramp_frame_h) \
- $(sparc_tdep_h)
+sparc-linux-tdep.o: sparc-linux-tdep.c $(defs_h) $(dwarf2_frame_h) \
+ $(floatformat_h) $(frame_h) $(frame_unwind_h) $(gdbarch_h) \
+ $(gdbcore_h) $(osabi_h) $(regcache_h) $(solib_svr4_h) $(symtab_h) \
+ $(trad_frame_h) $(tramp_frame_h) $(sparc_tdep_h)
sparc-nat.o: sparc-nat.c $(defs_h) $(inferior_h) $(regcache_h) $(target_h) \
$(gdb_assert_h) $(gdb_string_h) $(gdb_wait_h) $(sparc_tdep_h) \
$(sparc_nat_h) $(inf_ptrace_h)
@@ -2666,10 +2666,10 @@ sparc-sol2-tdep.o: sparc-sol2-tdep.c $(defs_h) $(frame_h) $(frame_unwind_h) \
$(sparc_tdep_h) $(solib_svr4_h)
sparc-stub.o: sparc-stub.c
sparc-tdep.o: sparc-tdep.c $(defs_h) $(arch_utils_h) $(dis_asm_h) \
- $(floatformat_h) $(frame_h) $(frame_base_h) $(frame_unwind_h) \
- $(gdbcore_h) $(gdbtypes_h) $(inferior_h) $(symtab_h) $(objfiles_h) \
- $(osabi_h) $(regcache_h) $(target_h) $(value_h) $(gdb_assert_h) \
- $(gdb_string_h) $(sparc_tdep_h)
+ $(dwarf2_frame_h) $(floatformat_h) $(frame_h) $(frame_base_h) \
+ $(frame_unwind_h) $(gdbcore_h) $(gdbtypes_h) $(inferior_h) \
+ $(symtab_h) $(objfiles_h) $(osabi_h) $(regcache_h) $(target_h) \
+ $(value_h) $(gdb_assert_h) $(gdb_string_h) $(sparc_tdep_h)
stabsread.o: stabsread.c $(defs_h) $(gdb_string_h) $(bfd_h) $(gdb_obstack_h) \
$(symtab_h) $(gdbtypes_h) $(expression_h) $(symfile_h) $(objfiles_h) \
$(aout_stab_gnu_h) $(libaout_h) $(aout_aout64_h) $(gdb_stabs_h) \
diff --git a/gdb/sparc-linux-tdep.c b/gdb/sparc-linux-tdep.c
index 328889b..ef7f370 100644
--- a/gdb/sparc-linux-tdep.c
+++ b/gdb/sparc-linux-tdep.c
@@ -20,6 +20,7 @@
Boston, MA 02110-1301, USA. */
#include "defs.h"
+#include "dwarf2-frame.h"
#include "floatformat.h"
#include "frame.h"
#include "frame-unwind.h"
@@ -150,6 +151,9 @@ sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* Enable TLS support. */
set_gdbarch_fetch_tls_load_module_address (gdbarch,
svr4_fetch_objfile_link_map);
+
+ /* Hook in the DWARF CFI frame unwinder. */
+ frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);
}
/* Provide a prototype to silence -Wmissing-prototypes. */