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 Undo previous, it was wrong:
details: https://anonhg.NetBSD.org/src/rev/27e298a137de
branches: trunk
changeset: 778314:27e298a137de
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 21 21:25:38 2012 +0000
description:
Undo previous, it was wrong:
The problem has to do with the threaded initialization.
After we take the first breakpoint and we enter single step mode,
we set trap_expected = 1 in the thread_info structure for main <pid,0,0>.
After the threads initialize, the main thread becomes <pid,1,0>, and so
we get a new thread_info struct with trap_expected = 0, and so we break.
diffstat:
external/gpl3/gdb/dist/gdb/inf-ptrace.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diffs (24 lines):
diff -r c1538b78ec98 -r 27e298a137de external/gpl3/gdb/dist/gdb/inf-ptrace.c
--- a/external/gpl3/gdb/dist/gdb/inf-ptrace.c Wed Mar 21 20:07:52 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/inf-ptrace.c Wed Mar 21 21:25:38 2012 +0000
@@ -358,12 +358,6 @@
else
request = PT_CONTINUE;
-#ifdef notyet
- /*
- * Disable support for kernel PT_STEP. This code has no hope of working
- * since this is the only place where PT_STEP is set, and it is only turned
- * on!
- */
if (step)
{
/* If this system does not support PT_STEP, a higher level
@@ -374,7 +368,6 @@
request = PT_STEP;
sig = 0;
} else
-#endif
sig = target_signal_to_host (signal);
/* An address of (PTRACE_TYPE_ARG3)1 tells ptrace to continue from
Home |
Main Index |
Thread Index |
Old Index