Module Name: src Committed By: christos Date: Sun Feb 2 22:00:38 UTC 2014
Modified Files: src/external/gpl3/gdb/dist/gdb: inf-ptrace.c Log Message: Fix threading bug again. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/inf-ptrace.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/inf-ptrace.c diff -u src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.6 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.7 --- src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.6 Thu Oct 3 14:30:44 2013 +++ src/external/gpl3/gdb/dist/gdb/inf-ptrace.c Sun Feb 2 17:00:38 2014 @@ -364,7 +364,13 @@ inf_ptrace_resume (struct target_ops *op all possible successor instructions), so we don't have to worry about that here. */ request = PT_STEP; - } +#ifdef __NetBSD__ + sig = ptid_get_lwp(ptid); +#else + sig = 0; +#endif + } else + sig = gdb_signal_to_host (signal); /* An address of (PTRACE_TYPE_ARG3)1 tells ptrace to continue from where it was. If GDB wanted it to start some other way, we have @@ -374,7 +380,7 @@ inf_ptrace_resume (struct target_ops *op XXX __NetBSD__: We used to pass this as the signal sig = ptid_get_lwp(ptid); */ - ptrace (request, pid, (PTRACE_TYPE_ARG3)1, gdb_signal_to_host (signal)); + ptrace (request, pid, (PTRACE_TYPE_ARG3)1, sig); if (errno != 0) perror_with_name (("ptrace")); }