aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/low-sun3.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-12-08 22:54:33 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-12-08 22:54:33 +0000
commit4cc1b3f79dcd9b5dc475c358a3388239e9d7b68b (patch)
tree0783784fe967a54e89aed7aa93b8fc0010bce7ee /gdb/gdbserver/low-sun3.c
parent4181c9853b48e3a4deb6c518e4b0a6a901eef7ac (diff)
downloadgdb-4cc1b3f79dcd9b5dc475c358a3388239e9d7b68b.zip
gdb-4cc1b3f79dcd9b5dc475c358a3388239e9d7b68b.tar.gz
gdb-4cc1b3f79dcd9b5dc475c358a3388239e9d7b68b.tar.bz2
* gdbserver/remote-utils.c (write_ok): Write "OK", not "Ok", to
match stubs and protocol spec. * gdbserver/remote-utils.c (remote_open): Cast to struct sockaddr when passing to function which expects that. The following changes aren't quite enough to make things work with LynxOS (apprently kernel problems). * infrun.c (wait_for_inferior): When resuming new thread, pass pid not -1 for remote case. * thread.c (info_threads_command): Give error if !target_has_stack. * infrun.c (start_remote): Call init_thread_list. * thread.c (info_threads_command): Don't call kill for remote debugging target. * target.c (normal_pid_to_str): Print "thread" not "process" for remote. * remote.c, gdbserver/*: Add 'H', 'S', and 'C' requests, 'X' response, and `thread' part of 'T' response. * gdbserver/*: If program exits, send packet to GDB before exiting. Handle termination with a signal the same as exiting with an exitstatus. * remote.c: Don't try to kill program after getting an 'X' response. * infrun.c (wait_for_inferior): Add comment about kill versus mourn.
Diffstat (limited to 'gdb/gdbserver/low-sun3.c')
-rw-r--r--gdb/gdbserver/low-sun3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbserver/low-sun3.c b/gdb/gdbserver/low-sun3.c
index b61f90e..21207e6 100644
--- a/gdb/gdbserver/low-sun3.c
+++ b/gdb/gdbserver/low-sun3.c
@@ -111,19 +111,19 @@ mywait (status)
if (WIFEXITED (w))
{
fprintf (stderr, "\nChild exited with retcode = %x \n", WEXITSTATUS (w));
- *status = 'E';
+ *status = 'W';
return ((unsigned char) WEXITSTATUS (w));
}
else if (!WIFSTOPPED (w))
{
fprintf (stderr, "\nChild terminated with signal = %x \n", WTERMSIG (w));
- *status = 'T';
+ *status = 'X';
return ((unsigned char) WTERMSIG (w));
}
fetch_inferior_registers (0);
- *status = 'S';
+ *status = 'T';
return ((unsigned char) WSTOPSIG (w));
}