aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.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/rs6000-tdep.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/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 45d6af4..edae708 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -121,9 +121,9 @@ branch_dest (opcode, instr, pc, safety)
/* AIX does not support PT_STEP. Simulate it. */
-int
+void
single_step (signal)
-int signal;
+ int signal;
{
#define INSNLEN(OPCODE) 4
@@ -161,9 +161,7 @@ int signal;
}
one_stepped = 1;
- ptrace (PT_CONTINUE, inferior_pid, (PTRACE_ARG3_TYPE) 1, signal, 0);
- }
- else {
+ } else {
/* remove step breakpoints. */
for (ii=0; ii < 2; ++ii)
@@ -173,8 +171,7 @@ int signal;
one_stepped = 0;
}
- errno = 0;
- return 1;
+ errno = 0; /* FIXME, don't ignore errors! */
}