diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-12-08 22:54:33 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-12-08 22:54:33 +0000 |
commit | 4cc1b3f79dcd9b5dc475c358a3388239e9d7b68b (patch) | |
tree | 0783784fe967a54e89aed7aa93b8fc0010bce7ee /gdb/gdbserver/low-sparc.c | |
parent | 4181c9853b48e3a4deb6c518e4b0a6a901eef7ac (diff) | |
download | gdb-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-sparc.c')
-rw-r--r-- | gdb/gdbserver/low-sparc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbserver/low-sparc.c b/gdb/gdbserver/low-sparc.c index 92a23ac..f3e3b0e 100644 --- a/gdb/gdbserver/low-sparc.c +++ b/gdb/gdbserver/low-sparc.c @@ -114,19 +114,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)); } |