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 Disable OS supplied single step f...



details:   https://anonhg.NetBSD.org/src/rev/b9bcaad7008b
branches:  trunk
changeset: 778309:b9bcaad7008b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 21 18:01:34 2012 +0000

description:
Disable OS supplied single step functionality, because the code here is
wrong.

diffstat:

 external/gpl3/gdb/dist/gdb/inf-ptrace.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r edde94f114ee -r b9bcaad7008b external/gpl3/gdb/dist/gdb/inf-ptrace.c
--- a/external/gpl3/gdb/dist/gdb/inf-ptrace.c   Wed Mar 21 16:11:26 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/inf-ptrace.c   Wed Mar 21 18:01:34 2012 +0000
@@ -358,6 +358,12 @@
   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
@@ -368,6 +374,7 @@
       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