* hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
authorJoel Brobecker <brobecker@gnat.com>
Fri, 6 Jun 2003 00:22:00 +0000 (00:22 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 6 Jun 2003 00:22:00 +0000 (00:22 +0000)
        pc_in_sigtramp multiarch method.
        (hppa_hpux_som_init_abi): Use it.
        (hppa_hpux_elf_init_abi): Likewise.
        * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
        macro has been multiarched.
        * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
        macro here, as hppa64 isn't multiarched yet.

gdb/ChangeLog
gdb/config/pa/tm-hppa64.h
gdb/config/pa/tm-hppah.h
gdb/hppa-hpux-tdep.c

index 5ed30523fed8ad4fb97e08966558454740843886..06018075c1d7aca0da5f48cb4cb6ccfcc4c28fad 100644 (file)
@@ -1,3 +1,14 @@
+2003-06-05  J. Brobecker  <brobecker@gnat.com>
+
+       * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
+       pc_in_sigtramp multiarch method.
+       (hppa_hpux_som_init_abi): Use it.
+       (hppa_hpux_elf_init_abi): Likewise.
+       * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
+       macro has been multiarched.
+       * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
+       macro here, as hppa64 isn't multiarched yet.
+
 2003-06-05  Andrew Cagney  <cagney@redhat.com>
 
        * Makefile.in (value_h): Add $(frame_h).
index 6d39ed0c6a4af834df67397012f1554f7e288a62..a3cc4bedcbd0cd2e88995e3e76fa0b1b0ab41bed 100644 (file)
@@ -35,9 +35,14 @@ struct frame_info;
    the conversion for hppa64 hasn't been completed yet.  */
 #define GDB_MULTI_ARCH 0
 
-/* FIXME: brobecker 2003-04-21: All the definition from this point until
-   the include of pa/tm-hppah.h are extracted from tm-hppa.h.  They have
-   been temporarily moved here, until hppa64 is multiarched too.  */
+/* FIXME: brobecker 2003-05-22: All the definition from this point until
+   the include of pa/tm-hppah.h are extracted from tm-hppa.h and tm-hppah.h.
+   They have been temporarily moved here, until hppa64 is multiarched too.  */
+
+#if !GDB_MULTI_ARCH
+extern int hppa_hpux_pc_in_sigtramp (CORE_ADDR pc, char *name);
+#define PC_IN_SIGTRAMP(pc, name) hppa_hpux_pc_in_sigtramp (pc, name)
+#endif
 
 #if !GDB_MULTI_ARCH
 extern int hppa_reg_struct_has_addr (int gcc_p, struct type *type);
index 290f752d0a34dbecddb2fe2996d3939657024060..345baafb4dc764024483a6c9a0ce32b65e272924 100644 (file)
@@ -35,11 +35,6 @@ struct frame_info;
 #include "somsolib.h"
 #endif
 
-#if !GDB_MULTI_ARCH
-extern int hppa_hpux_pc_in_sigtramp (CORE_ADDR pc, char *name);
-#define PC_IN_SIGTRAMP(pc, name) hppa_hpux_pc_in_sigtramp (pc, name)
-#endif
-
 extern void hppa_hpux_frame_saved_pc_in_sigtramp (struct frame_info *fi,
                                                   CORE_ADDR *tmp);
 #define FRAME_SAVED_PC_IN_SIGTRAMP(FRAME, TMP) \
index cc50e02783e8cd866b6d2c0b2b39b33c0168edc1..0fb7c8f879d307bb5785dce3e00e580c5a0c8554 100644 (file)
@@ -94,15 +94,22 @@ hppa_hpux_frame_find_saved_regs_in_sigtramp (struct frame_info *fi,
     }
 }
 
+static void
+hppa_hpux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
+{
+  set_gdbarch_pc_in_sigtramp (gdbarch, hppa_hpux_pc_in_sigtramp);
+}
 
 static void
 hppa_hpux_som_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 {
+  hppa_hpux_init_abi (info, gdbarch);
 }
 
 static void
 hppa_hpux_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 {
+  hppa_hpux_init_abi (info, gdbarch);
 }
 
 void