From: David S. Miller Date: Wed, 5 Apr 2006 20:27:08 +0000 (+0000) Subject: * sparc-linux-tdep.c (sparc32_linux_init_abi): Append X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=faea95b19b801d56b2613869cf5fe70c872ad1b7;p=binutils-gdb.git * sparc-linux-tdep.c (sparc32_linux_init_abi): Append dwarf2 frame sniffer. * Makefile.in (sparc-linux-tdep.o): Update dependencies. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18ce844e026..32e40c66df1 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 diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 09a2a3dd5b8..a7ee54d2557 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 328889b4c8e..ef7f3700212 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. */