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 Fix threading bug again.
details: https://anonhg.NetBSD.org/src/rev/91b0c4943163
branches: trunk
changeset: 326560:91b0c4943163
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 02 22:00:38 2014 +0000
description:
Fix threading bug again.
diffstat:
external/gpl3/gdb/dist/gdb/inf-ptrace.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r e52d6ec3893f -r 91b0c4943163 external/gpl3/gdb/dist/gdb/inf-ptrace.c
--- a/external/gpl3/gdb/dist/gdb/inf-ptrace.c Sun Feb 02 18:06:33 2014 +0000
+++ b/external/gpl3/gdb/dist/gdb/inf-ptrace.c Sun Feb 02 22:00:38 2014 +0000
@@ -364,7 +364,13 @@
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 @@
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"));
}
Home |
Main Index |
Thread Index |
Old Index