aboutsummaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-18 07:40:15 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-18 07:40:15 +0000
commit997cc2c0a3ca76b3da1489ce530df5d0c3a46a2c (patch)
tree8c268a054c7bdba489d21b96764ef356032c8459 /gdb/infptrace.c
parent2ec3d07cc720e9d81ee3d174829d6231cecbebf1 (diff)
downloadgdb-997cc2c0a3ca76b3da1489ce530df5d0c3a46a2c.zip
gdb-997cc2c0a3ca76b3da1489ce530df5d0c3a46a2c.tar.gz
gdb-997cc2c0a3ca76b3da1489ce530df5d0c3a46a2c.tar.bz2
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.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r--gdb/infptrace.c11
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;