From d11c44f1ee9650339d5c874d3227611f82e3f104 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Thu, 30 May 1991 08:52:52 +0000 Subject: Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog. --- gdb/infptrace.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'gdb/infptrace.c') diff --git a/gdb/infptrace.c b/gdb/infptrace.c index 2298c9823ca..23da854cda8 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -106,19 +106,16 @@ child_resume (step, signal) int signal; { errno = 0; - /* An address of (int *)1 tells it to continue from where it was. + + /* An address of (int *)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.) */ + if (step) - { -#if defined (NO_SINGLE_STEP) - single_step (signal); -#else /* Have single step. */ - ptrace (PT_STEP, inferior_pid, (int *)1, signal); -#endif /* Have single step. */ - } + ptrace (PT_STEP, inferior_pid, (int *)1, signal); else ptrace (PT_CONTINUE, inferior_pid, (int *)1, signal); + if (errno) perror_with_name ("ptrace"); } @@ -245,7 +242,6 @@ fetch_inferior_registers (regno) fetch_register (regno); else fetch_register (regno); - return 0; } /* Registers we shouldn't try to store. */ -- cgit v1.2.1