Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb pass the thread id.



details:   https://anonhg.NetBSD.org/src/rev/27cc6cfa46df
branches:  trunk
changeset: 770231:27cc6cfa46df
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 08 21:43:35 2011 +0000

description:
pass the thread id.

diffstat:

 external/gpl3/gdb/dist/gdb/amd64bsd-nat.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r c5c0f6cf5783 -r 27cc6cfa46df external/gpl3/gdb/dist/gdb/amd64bsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/amd64bsd-nat.c Sat Oct 08 20:40:06 2011 +0000
+++ b/external/gpl3/gdb/dist/gdb/amd64bsd-nat.c Sat Oct 08 21:43:35 2011 +0000
@@ -50,7 +50,7 @@
       struct reg regs;
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
-                 (PTRACE_TYPE_ARG3) &regs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &regs, TIDGET (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't get registers"));
 
       amd64_supply_native_gregset (regcache, &regs, -1);
@@ -63,7 +63,7 @@
       struct fpreg fpregs;
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
-                 (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &fpregs, TIDGET (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't get floating point status"));
 
       amd64_supply_fxsave (regcache, -1, &fpregs);
@@ -84,13 +84,13 @@
       struct reg regs;
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
-                  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
+                  (PTRACE_TYPE_ARG3) &regs, TIDGET (inferior_ptid)) == -1)
         perror_with_name (_("Couldn't get registers"));
 
       amd64_collect_native_gregset (regcache, &regs, regnum);
 
       if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
-                 (PTRACE_TYPE_ARG3) &regs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &regs, TIDGET (inferior_ptid)) == -1)
         perror_with_name (_("Couldn't write registers"));
 
       if (regnum != -1)
@@ -102,13 +102,13 @@
       struct fpreg fpregs;
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
-                 (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &fpregs, TIDGET (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't get floating point status"));
 
       amd64_collect_fxsave (regcache, regnum, &fpregs);
 
       if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
-                 (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &fpregs, TIDGET (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't write floating point status"));
     }
 }



Home | Main Index | Thread Index | Old Index