Module Name: src
Committed By: christos
Date: Wed Dec 27 19:20:04 UTC 2017
Modified Files:
src/external/gpl3/gdb/dist/gdb: x86-bsd-nat.c
Log Message:
one more place to pass the thread id
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c:1.3 src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c:1.4
--- src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c:1.3 Fri Dec 1 17:15:17 2017
+++ src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c Wed Dec 27 14:20:04 2017
@@ -69,7 +69,7 @@ x86bsd_dr_get (ptid_t ptid, int regnum)
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 read debug registers"));
return DBREG_DRX ((&dbregs), regnum);