* sparc-linux-tdep.c (sparc32_linux_init_abi): Append
authorDavid S. Miller <davem@redhat.com>
Wed, 5 Apr 2006 20:27:08 +0000 (20:27 +0000)
committerDavid S. Miller <davem@redhat.com>
Wed, 5 Apr 2006 20:27:08 +0000 (20:27 +0000)
dwarf2 frame sniffer.
* Makefile.in (sparc-linux-tdep.o): Update dependencies.

gdb/ChangeLog
gdb/Makefile.in
gdb/sparc-linux-tdep.c

index 18ce844e0269b8818642e56a755ac6ffbb29345e..32e40c66df1c2fc20ec15cb1c558e396b0f5e96e 100644 (file)
@@ -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>
 
index 09a2a3dd5b8bac17d81d5dc24987ea67366fb3a1..a7ee54d2557a95096a9da31c19b4526e2b9301c0 100644 (file)
@@ -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) \
index 328889b4c8ee9395dd50e691a8ad337050f69f59..ef7f37002127ea3ee71633c185f984c9d4757d68 100644 (file)
@@ -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.  */
This page took 0.029537 seconds and 4 git commands to generate.