Module Name:    src
Committed By:   christos
Date:           Wed Mar 21 21:25:38 UTC 2012

Modified Files:
        src/external/gpl3/gdb/dist/gdb: inf-ptrace.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.4
--- src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.3	Wed Mar 21 14:01:34 2012
+++ src/external/gpl3/gdb/dist/gdb/inf-ptrace.c	Wed Mar 21 17:25:38 2012
@@ -358,12 +358,6 @@ inf_ptrace_resume (struct target_ops *op
   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 @@ inf_ptrace_resume (struct target_ops *op
       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

Reply via email to