diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-05-04 04:15:33 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-05-04 04:15:33 +0000 |
commit | 39f770628a4eaf018fec8d55684bf2ec16ada9cc (patch) | |
tree | 69027cfb7df2ecc521ab2cc1d25a7dd6cbe56632 /gdb/hp300ux-nat.c | |
parent | b1af961c8433821f61dd1849cff9eb9a8bb974e8 (diff) | |
download | gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.zip gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.gz gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.bz2 |
Phase 1 of the ptid_t changes.
Diffstat (limited to 'gdb/hp300ux-nat.c')
-rw-r--r-- | gdb/hp300ux-nat.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/hp300ux-nat.c b/gdb/hp300ux-nat.c index 26aa80f..ecb8a35 100644 --- a/gdb/hp300ux-nat.c +++ b/gdb/hp300ux-nat.c @@ -74,8 +74,8 @@ _initialize_hp300ux_nat (void) #define INFERIOR_AR0(u) \ ((ptrace \ - (PT_RUAREA, inferior_pid, \ - (PTRACE_ARG3_TYPE) ((char *) &u.u_ar0 - (char *) &u), 0, 0)) \ + (PT_RUAREA, PIDGET (inferior_ptid), \ + (PTRACE_ARG3_TYPE) ((char *) &u.u_ar0 - (char *) &u), 0, 0)) \ - kernel_u_addr) static void @@ -92,8 +92,8 @@ fetch_inferior_register (register int regno, register unsigned int regaddr) ps_val; int regval; - ps_val.i = (ptrace (PT_RUAREA, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, - 0, 0)); + ps_val.i = (ptrace (PT_RUAREA, PIDGET (inferior_ptid), + (PTRACE_ARG3_TYPE) regaddr, 0, 0)); regval = ps_val.s[0]; supply_register (regno, (char *) ®val); } @@ -105,7 +105,7 @@ fetch_inferior_register (register int regno, register unsigned int regaddr) for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof (int)) { - *(int *) &buf[i] = ptrace (PT_RUAREA, inferior_pid, + *(int *) &buf[i] = ptrace (PT_RUAREA, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) regaddr, 0, 0); regaddr += sizeof (int); } @@ -118,7 +118,8 @@ static void store_inferior_register_1 (int regno, unsigned int regaddr, int val) { errno = 0; - ptrace (PT_WUAREA, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, val, 0); + ptrace (PT_WUAREA, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) regaddr, + val, 0); #if 0 /* HP-UX randomly sets errno to non-zero for regno == 25. However, the value is correctly written, so ignore errno. */ @@ -146,8 +147,8 @@ store_inferior_register (register int regno, register unsigned int regaddr) } ps_val; - ps_val.i = (ptrace (PT_RUAREA, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, - 0, 0)); + ps_val.i = (ptrace (PT_RUAREA, PIDGET (inferior_ptid), + (PTRACE_ARG3_TYPE) regaddr, 0, 0)); ps_val.s[0] = (read_register (regno)); store_inferior_register_1 (regno, regaddr, ps_val.i); } |