1 /* Parameters for execution on an HP PA-RISC machine running OSF1, for GDB.
2 Contributed by the Center for Software Science at the
3 University of Utah (pa-gdb-bugs@cs.utah.edu). */
5 /* For OSF1 (Should be close if not identical to BSD, but I haven't
8 The signal context structure pointer is always saved at the base
11 We get the PC & SP directly from the sigcontext structure itself.
12 For other registers we have to dive in a little deeper:
14 The hardware save state pointer is at offset 0x10 within the
15 signal context structure.
17 Within the hardware save state, registers are found in the same order
18 as the register numbers in GDB. */
20 #define FRAME_SAVED_PC_IN_SIGTRAMP(FRAME, TMP) \
22 *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \
23 *(TMP) = read_memory_integer (*(TMP) + 0x18, 4); \
26 #define FRAME_BASE_BEFORE_SIGTRAMP(FRAME, TMP) \
28 *(TMP) = read_memory_integer ((FRAME)->frame + 0x4, 4); \
29 *(TMP) = read_memory_integer (*(TMP) + 0x8, 4); \
32 #define FRAME_FIND_SAVED_REGS_IN_SIGTRAMP(FRAME, FSR) \
36 TMP = read_memory_integer ((FRAME)->frame + 0x4, 4); \
37 TMP = read_memory_integer (TMP + 0x10, 4); \
38 for (i = 0; i < NUM_REGS; i++) \
41 (FSR)->regs[SP_REGNUM] = read_memory_integer (TMP + SP_REGNUM * 4, 4); \
43 (FSR)->regs[i] = TMP + i * 4; \
47 /* OSF1 needs an extra trap. I assume for the emulator startup (?!?) */
48 #define START_INFERIOR_TRAPS_EXPECTED 3
50 /* OSF1 does not need the pc space queue restored. */
51 #define NO_PC_SPACE_QUEUE_RESTORE
53 /* It's mostly just the common stuff. */
54 #include "pa/tm-hppa.h"
This page took 0.030329 seconds and 4 git commands to generate.