From 997cc2c0a3ca76b3da1489ce530df5d0c3a46a2c Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Fri, 18 Sep 1992 07:40:15 +0000 Subject: Preliminary cleanup for splitting host/native/target. * infptrace.c (child_resume): Don't deal with NO_SINGLE_STEP here; it is dealt with at a gdb-target-independent level. * rs6000-tdep.c (single_step): Don't call ptrace, we are a high toned routine. Fix return type to void. --- gdb/infptrace.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gdb/infptrace.c') 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; -- cgit v1.1