aboutsummaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-30 08:52:52 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-30 08:52:52 +0000
commitd11c44f1ee9650339d5c874d3227611f82e3f104 (patch)
tree23487e3405f8e4c1202d95d6c3e3fa4fe67ac2fb /gdb/infptrace.c
parent924bbb3815705cba6e369cbea2dff86884e9265a (diff)
downloadgdb-d11c44f1ee9650339d5c874d3227611f82e3f104.zip
gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.gz
gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.bz2
Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r--gdb/infptrace.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 2298c98..23da854 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. */