From 60e1ff2716f2ef348d75b0d9b1dc2cb9206469f8 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 26 Dec 2002 09:36:43 +0000 Subject: Continuing work to convert the hppa targets to multiarch partial. * hppa-tdep.c: (hppa_register_raw_size): New function replacing the body of macro REGISTER_RAW_SIZE. * hppa-hpux-tdep.c: Add new functions replacing macro bodies from config/pa/tm-hppah.h. These functions will be used to initialize the gdbarch structure. (hppa_hpux_pc_in_sigtramp): New function. (hppa_hpux_frame_saved_pc_in_sigtramp): New function. (hppa_hpux_frame_base_before_sigtramp): New function. (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function. Add gdbcore.h #include. * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition of this gdbarch-eligible macro to a call to the new associated function. * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise. (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro into a call to the new associated function. (FRAME_BASE_BEFORE_SIGTRAMP): Likewise. (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise. * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h. --- gdb/hppa-tdep.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/hppa-tdep.c') diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index e928f3f..8c85648 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -139,6 +139,7 @@ int hppa_inner_than (CORE_ADDR lhs, CORE_ADDR rhs); CORE_ADDR hppa_stack_align (CORE_ADDR sp); int hppa_pc_requires_run_before_use (CORE_ADDR pc); int hppa_instruction_nullified (void); +int hppa_register_raw_size (int reg_nr); int hppa_register_byte (int reg_nr); struct type * hppa_register_virtual_type (int reg_nr); void hppa_store_struct_return (CORE_ADDR addr, CORE_ADDR sp); @@ -4812,6 +4813,13 @@ hppa_instruction_nullified (void) return ((ipsw & 0x00200000) && !(flags & 0x2)); } +int +hppa_register_raw_size (int reg_nr) +{ + /* All registers have the same size. */ + return REGISTER_SIZE; +} + /* Index within the register vector of the first byte of the space i used for register REG_NR. */ -- cgit v1.1