diff options
| author | nathanw <nathanw@NetBSD.org> | 2003-10-18 00:13:35 +0000 |
|---|---|---|
| committer | nathanw <nathanw@NetBSD.org> | 2003-10-18 00:13:35 +0000 |
| commit | 37337ad2dbebf79c10716b775a38fd267d5c2a67 (patch) | |
| tree | 62da92db1c19cd6844a058cfc99080c189a3491a /gnu | |
| parent | fef0da346ab0d1e9e6f80d0cde3a6d5424b90530 (diff) | |
Pass the LWP of the ptid in PT_{GET,SET}REGS calls.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/gdb/gdb/i386bsd-nat.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gnu/dist/gdb/gdb/i386bsd-nat.c b/gnu/dist/gdb/gdb/i386bsd-nat.c index 9e5b9a59e7a..ad2aba85ea3 100644 --- a/gnu/dist/gdb/gdb/i386bsd-nat.c +++ b/gnu/dist/gdb/gdb/i386bsd-nat.c @@ -182,7 +182,7 @@ fetch_inferior_registers (int regno) gregset_t gregs; if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) &gregs, 0) == -1) + (PTRACE_ARG3_TYPE) &gregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't get registers"); supply_gregset (&gregs); @@ -198,7 +198,7 @@ fetch_inferior_registers (int regno) if (have_ptrace_xmmregs != 0 && ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) xmmregs, 0) == 0) + (PTRACE_ARG3_TYPE) xmmregs, TIDGET (inferior_ptid)) == 0) { have_ptrace_xmmregs = 1; i387_supply_fxsave (xmmregs); @@ -206,14 +206,14 @@ fetch_inferior_registers (int regno) else { if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) + (PTRACE_ARG3_TYPE) &fpregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't get floating point status"); supply_fpregset (&fpregs); } #else if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) + (PTRACE_ARG3_TYPE) &fpregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't get floating point status"); supply_fpregset (&fpregs); @@ -233,13 +233,13 @@ store_inferior_registers (int regno) gregset_t gregs; if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) &gregs, 0) == -1) + (PTRACE_ARG3_TYPE) &gregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't get registers"); fill_gregset (&gregs, regno); if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) &gregs, 0) == -1) + (PTRACE_ARG3_TYPE) &gregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't write registers"); if (regno != -1) @@ -254,14 +254,14 @@ store_inferior_registers (int regno) if (have_ptrace_xmmregs != 0 && ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) xmmregs, 0) == 0) + (PTRACE_ARG3_TYPE) xmmregs, TIDGET (inferior_ptid)) == 0) { have_ptrace_xmmregs = 1; i387_fill_fxsave (xmmregs, regno); if (ptrace (PT_SETXMMREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) xmmregs, 0) == -1) + (PTRACE_ARG3_TYPE) xmmregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't write XMM registers"); } else @@ -269,13 +269,13 @@ store_inferior_registers (int regno) have_ptrace_xmmregs = 0; #endif if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) + (PTRACE_ARG3_TYPE) &fpregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't get floating point status"); fill_fpregset (&fpregs, regno); if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) + (PTRACE_ARG3_TYPE) &fpregs, TIDGET (inferior_ptid)) == -1) perror_with_name ("Couldn't write floating point status"); #ifdef HAVE_PT_GETXMMREGS } |
