diff options
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r-- | gdb/infptrace.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c index 3856b36..87178cd 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -120,14 +120,15 @@ child_resume (step, signal) /* An address of (PTRACE_ARG3_TYPE)1 tells ptrace to continue from where it was. (If GDB wanted it to start some other way, we have already - written a new PC value to the child.) */ + written a new PC value to the child.) + + If this system does not support PT_STEP, a higher level function will + have called single_step() to transmute the step request into a + continue request (by setting breakpoints on all possible successor + instructions), so we don't have to worry about that here. */ if (step) -#ifdef NO_SINGLE_STEP - single_step (signal); -#else ptrace (PT_STEP, inferior_pid, (PTRACE_ARG3_TYPE) 1, signal); -#endif else #ifdef AIX_BUGGY_PTRACE_CONTINUE AIX_BUGGY_PTRACE_CONTINUE; |