1 /* Parameters for execution on an HP PA-RISC machine running BSD, for GDB.
2 Contributed by the Center for Software Science at the
3 University of Utah (pa-gdb-bugs@cs.utah.edu). */
7 The signal context structure pointer is always saved at the base
10 We get the PC & SP directly from the sigcontext structure itself.
11 For other registers we have to dive in a little deeper:
13 The hardware save state pointer is at offset 0x10 within the
14 signal context structure.
16 Within the hardware save state, registers are found in the same order
17 as the register numbers in GDB. */
19 #define FRAME_SAVED_PC_IN_SIGTRAMP(FRAME, TMP) \
21 *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \
22 *(TMP) = read_memory_integer (*(TMP) + 0x18, 4); \
25 #define FRAME_BASE_BEFORE_SIGTRAMP(FRAME, TMP) \
27 *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \
28 *(TMP) = read_memory_integer (*(TMP) + 0x8, 4); \
31 #define FRAME_FIND_SAVED_REGS_IN_SIGTRAMP(FRAME, FSR) \
35 TMP = read_memory_integer ((FRAME)->frame + 0x4, 4); \
36 TMP = read_memory_integer (TMP + 0x10, 4); \
37 for (i = 0; i < NUM_REGS; i++) \
40 (FSR)->regs[SP_REGNUM] = read_memory_integer (TMP + SP_REGNUM * 4, 4); \
42 (FSR)->regs[i] = TMP + i * 4; \
46 /* It's mostly just the common stuff. */
47 #include "pa/tm-hppa.h"
This page took 0.030793 seconds and 5 git commands to generate.