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 get the debugging registers for t...



details:   https://anonhg.NetBSD.org/src/rev/56413d7374bc
branches:  trunk
changeset: 828192:56413d7374bc
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 01 22:15:17 2017 +0000

description:
get the debugging registers for the specific thread.

diffstat:

 external/gpl3/gdb/dist/gdb/x86-bsd-nat.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ea35d6c31775 -r 56413d7374bc external/gpl3/gdb/dist/gdb/x86-bsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c  Fri Dec 01 22:14:52 2017 +0000
+++ b/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c  Fri Dec 01 22:15:17 2017 +0000
@@ -82,7 +82,7 @@
   struct dbreg dbregs;
 
   if (ptrace (PT_GETDBREGS, get_ptrace_pid (inferior_ptid),
-              (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
+              (PTRACE_TYPE_ARG3) &dbregs, ptid_get_lwp (inferior_ptid)) == -1)
     perror_with_name (_("Couldn't get debug registers"));
 
   /* For some mysterious reason, some of the reserved bits in the
@@ -96,7 +96,7 @@
     if (thread->inf == current_inferior ())
       {
        if (ptrace (PT_SETDBREGS, get_ptrace_pid (thread->ptid),
-                   (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
+                   (PTRACE_TYPE_ARG3) &dbregs, ptid_get_lwp (inferior_ptid)) == -1)
          perror_with_name (_("Couldn't write debug registers"));
       }
 }



Home | Main Index | Thread Index | Old Index