diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-03-27 05:15:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-03-27 05:15:49 +0000 |
commit | 0e98d0a7510d45111a189ecd2baed6d15c61a11b (patch) | |
tree | 9e94d65be10c79416b88871a817df0092db5c8a7 /gdb/gdbserver/server.c | |
parent | 3130066b6cbb3de4f8f8d00b33c70accaca0f68b (diff) | |
download | gdb-0e98d0a7510d45111a189ecd2baed6d15c61a11b.zip gdb-0e98d0a7510d45111a189ecd2baed6d15c61a11b.tar.gz gdb-0e98d0a7510d45111a189ecd2baed6d15c61a11b.tar.bz2 |
2002-03-27 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/server.c (main): Call target_signal_to_host_p
and target_signal_to_host on signals received from the remote.
* gdbserver/remote-utils.c (prepare_resume_reply): Call
target_signal_from_host on signals sent to the remote.
* gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
* gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index d845422..adaabac 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -190,13 +190,21 @@ main (int argc, char *argv[]) break; case 'C': convert_ascii_to_int (own_buf + 1, &sig, 1); - myresume (0, sig); + if (target_signal_to_host_p (sig)) + signal = target_signal_to_host (sig); + else + signal = 0; + myresume (0, signal); signal = mywait (&status); prepare_resume_reply (own_buf, status, signal); break; case 'S': convert_ascii_to_int (own_buf + 1, &sig, 1); - myresume (1, sig); + if (target_signal_to_host_p (sig)) + signal = target_signal_to_host (sig); + else + signal = 0; + myresume (1, signal); signal = mywait (&status); prepare_resume_reply (own_buf, status, signal); break; |