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.
This commit is contained in:
John Gilmore 1992-09-18 07:40:15 +00:00
parent 2ec3d07cc7
commit 997cc2c0a3
3 changed files with 19 additions and 12 deletions

View file

@ -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! */
}