diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-01-11 10:46:15 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-01-11 10:46:15 +0000 |
commit | 747fe7125bc09576da82cb5bac423f9c0c1a2beb (patch) | |
tree | 16429b9974d5ed2a87fccd03bbb1a0ea6889f4c1 /gdb | |
parent | f1bea926d1d3e9f2ac6edae4ee28f9423cf7f650 (diff) | |
download | gdb-747fe7125bc09576da82cb5bac423f9c0c1a2beb.zip gdb-747fe7125bc09576da82cb5bac423f9c0c1a2beb.tar.gz gdb-747fe7125bc09576da82cb5bac423f9c0c1a2beb.tar.bz2 |
* armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
GETPID(inferior_ptid).
(store_inferior_registers): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/armnbsd-nat.c | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e91405..3d1d2fa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-01-11 Richard Earnshaw <rearnsha@arm.com> + + * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid -> + GETPID(inferior_ptid). + (store_inferior_registers): Likewise. + 2002-01-10 Jason Merrill <jason@redhat.com> * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup. diff --git a/gdb/armnbsd-nat.c b/gdb/armnbsd-nat.c index a6b9b04..b303c10 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 (®isters[REGISTER_BYTE (0)], &inferior_registers, 16 * sizeof (unsigned int)); memcpy (®isters[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 (®isters[REGISTER_BYTE (F0_REGNUM)], &inferior_fpregisters.fpr[0], 8 * sizeof (fp_reg_t)); memcpy (®isters[REGISTER_BYTE (FPS_REGNUM)], @@ -58,7 +59,8 @@ store_inferior_registers (regno) 16 * sizeof (unsigned int)); memcpy (&inferior_registers.r_cpsr, ®isters[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. */ } |