From: Rob Savoye Date: Thu, 8 Dec 1994 19:49:13 +0000 (+0000) Subject: * config/pa/tm-pro.h tm-hppap.h, hppapro.mt: Rename tm-hppap.h to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8c139e122f75a3afb5a39c3fad29b60afe2f74a;p=binutils-gdb.git * config/pa/tm-pro.h tm-hppap.h, hppapro.mt: Rename tm-hppap.h to tm-pro.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 231017e2d3c..a8b26b42fd0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 8 12:37:38 1994 Rob Savoye + + * config/pa/tm-pro.h tm-hppap.h, hppapro.mt: Rename tm-hppap.h to + tm-pro.h. + Wed Dec 7 18:22:59 1994 Stan Shebs * source.c: Various cosmetic changes. diff --git a/gdb/config/pa/hppapro.mt b/gdb/config/pa/hppapro.mt index 4f012e471d7..bf1e89410c2 100644 --- a/gdb/config/pa/hppapro.mt +++ b/gdb/config/pa/hppapro.mt @@ -4,4 +4,4 @@ TDEPFILES= hppa-pinsn.o hppa-tdep.o REMOTE_O=dcache.o remote.o remote-utils.o op50-rom.o w89k-rom.o monitor.o XDEPFILES= ser-tcp.o -TM_FILE= tm-hppap.h +TM_FILE= tm-pro.h diff --git a/gdb/config/pa/tm-hppap.h b/gdb/config/pa/tm-hppap.h deleted file mode 100644 index 97fb94a842c..00000000000 --- a/gdb/config/pa/tm-hppap.h +++ /dev/null @@ -1,50 +0,0 @@ -/* Parameters for execution on an HP PA-RISC machine running a ROM monitor, - for GDB. This is based on tm-hppab.h. - Contributed by the Center for Software Science at the - University of Utah (pa-gdb-bugs@cs.utah.edu). */ - -/* For BSD: - - The signal context structure pointer is always saved at the base - of the frame + 0x4. - - We get the PC & SP directly from the sigcontext structure itself. - For other registers we have to dive in a little deeper: - - The hardware save state pointer is at offset 0x10 within the - signal context structure. - - Within the hardware save state, registers are found in the same order - as the register numbers in GDB. */ - -#define FRAME_SAVED_PC_IN_SIGTRAMP(FRAME, TMP) \ -{ \ - *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \ - *(TMP) = read_memory_integer (*(TMP) + 0x18, 4); \ -} - -#define FRAME_BASE_BEFORE_SIGTRAMP(FRAME, TMP) \ -{ \ - *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \ - *(TMP) = read_memory_integer (*(TMP) + 0x8, 4); \ -} - -#define FRAME_FIND_SAVED_REGS_IN_SIGTRAMP(FRAME, FSR) \ -{ \ - int i; \ - CORE_ADDR TMP; \ - TMP = read_memory_integer ((FRAME)->frame + 0x4, 4); \ - TMP = read_memory_integer (TMP + 0x10, 4); \ - for (i = 0; i < NUM_REGS; i++) \ - { \ - if (i == SP_REGNUM) \ - (FSR)->regs[SP_REGNUM] = read_memory_integer (TMP + SP_REGNUM * 4, 4); \ - else \ - (FSR)->regs[i] = TMP + i * 4; \ - } \ -} - -/* It's mostly just the common stuff. */ -#include "pa/tm-hppa.h" - -#define GDB_TARGET_IS_PA_ELF diff --git a/gdb/config/pa/tm-pro.h b/gdb/config/pa/tm-pro.h new file mode 100644 index 00000000000..97fb94a842c --- /dev/null +++ b/gdb/config/pa/tm-pro.h @@ -0,0 +1,50 @@ +/* Parameters for execution on an HP PA-RISC machine running a ROM monitor, + for GDB. This is based on tm-hppab.h. + Contributed by the Center for Software Science at the + University of Utah (pa-gdb-bugs@cs.utah.edu). */ + +/* For BSD: + + The signal context structure pointer is always saved at the base + of the frame + 0x4. + + We get the PC & SP directly from the sigcontext structure itself. + For other registers we have to dive in a little deeper: + + The hardware save state pointer is at offset 0x10 within the + signal context structure. + + Within the hardware save state, registers are found in the same order + as the register numbers in GDB. */ + +#define FRAME_SAVED_PC_IN_SIGTRAMP(FRAME, TMP) \ +{ \ + *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \ + *(TMP) = read_memory_integer (*(TMP) + 0x18, 4); \ +} + +#define FRAME_BASE_BEFORE_SIGTRAMP(FRAME, TMP) \ +{ \ + *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \ + *(TMP) = read_memory_integer (*(TMP) + 0x8, 4); \ +} + +#define FRAME_FIND_SAVED_REGS_IN_SIGTRAMP(FRAME, FSR) \ +{ \ + int i; \ + CORE_ADDR TMP; \ + TMP = read_memory_integer ((FRAME)->frame + 0x4, 4); \ + TMP = read_memory_integer (TMP + 0x10, 4); \ + for (i = 0; i < NUM_REGS; i++) \ + { \ + if (i == SP_REGNUM) \ + (FSR)->regs[SP_REGNUM] = read_memory_integer (TMP + SP_REGNUM * 4, 4); \ + else \ + (FSR)->regs[i] = TMP + i * 4; \ + } \ +} + +/* It's mostly just the common stuff. */ +#include "pa/tm-hppa.h" + +#define GDB_TARGET_IS_PA_ELF