summaryrefslogtreecommitdiff
path: root/gdb/armnbsd-nat.c
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2002-01-11 10:46:15 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2002-01-11 10:46:15 +0000
commit06335246033d5045154f1af0a58743824c51d75a (patch)
tree268fc29dfcceb42783be3360bcb4033a43de4851 /gdb/armnbsd-nat.c
parentf15d9dd743331d47409dc96c614e045dced5bb46 (diff)
downloadgdb-06335246033d5045154f1af0a58743824c51d75a.tar.gz
* armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
GETPID(inferior_ptid). (store_inferior_registers): Likewise.
Diffstat (limited to 'gdb/armnbsd-nat.c')
-rw-r--r--gdb/armnbsd-nat.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/armnbsd-nat.c b/gdb/armnbsd-nat.c
index a6b9b046137..b303c10eca9 100644
--- a/gdb/armnbsd-nat.c
+++ b/gdb/armnbsd-nat.c
@@ -34,13 +34,14 @@ fetch_inferior_registers (regno)
struct reg inferior_registers;
struct fpreg inferior_fpregisters;
- ptrace (PT_GETREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_registers, 0);
+ ptrace (PT_GETREGS, PIDGET (inferior_ptid),
+ (PTRACE_ARG3_TYPE) &inferior_registers, 0);
memcpy (&registers[REGISTER_BYTE (0)], &inferior_registers,
16 * sizeof (unsigned int));
memcpy (&registers[REGISTER_BYTE (PS_REGNUM)], &inferior_registers.r_cpsr,
sizeof (unsigned int));
- ptrace (PT_GETFPREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_fpregisters,
- 0);
+ ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
+ (PTRACE_ARG3_TYPE) &inferior_fpregisters, 0);
memcpy (&registers[REGISTER_BYTE (F0_REGNUM)], &inferior_fpregisters.fpr[0],
8 * sizeof (fp_reg_t));
memcpy (&registers[REGISTER_BYTE (FPS_REGNUM)],
@@ -58,7 +59,8 @@ store_inferior_registers (regno)
16 * sizeof (unsigned int));
memcpy (&inferior_registers.r_cpsr, &registers[REGISTER_BYTE (PS_REGNUM)],
sizeof (unsigned int));
- ptrace (PT_SETREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_registers, 0);
+ ptrace (PT_SETREGS, PIDGET (inferior_ptid),
+ (PTRACE_ARG3_TYPE) &inferior_registers, 0);
/* XXX Set FP regs. */
}