diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-25 10:15:54 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-25 10:15:54 +0000 |
commit | 30d5032895e63800c5088101fb662b6b293e224a (patch) | |
tree | 64af2a830143e09991efe04b981a06046af35d66 /gdb/gdbserver | |
parent | 857d11d04f4da0befb66d98a7a7b7c98ad4c92e5 (diff) | |
download | gdb-30d5032895e63800c5088101fb662b6b293e224a.zip gdb-30d5032895e63800c5088101fb662b6b293e224a.tar.gz gdb-30d5032895e63800c5088101fb662b6b293e224a.tar.bz2 |
gdb/gdbserver/
* server.c (handle_target_event): Use target_signal_to_host for
resume_info.sig initialization.
* target.h (struct thread_resume) <sig>: New comment.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/target.h | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0d16be9..be33306 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> + + * server.c (handle_target_event): Use target_signal_to_host for + resume_info.sig initialization. + * target.h (struct thread_resume) <sig>: New comment. + 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> * server.c (handle_query): strcpy() the returned string from paddress() diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 29b6cdc..22f25c5 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -3147,7 +3147,7 @@ handle_target_event (int err, gdb_client_data client_data) resume_info.thread = last_ptid; resume_info.kind = resume_continue; - resume_info.sig = last_status.value.sig; + resume_info.sig = target_signal_to_host (last_status.value.sig); (*the_target->resume) (&resume_info, 1); } else if (debug_threads) diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index e974ecb..1f9f921 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -53,7 +53,8 @@ struct thread_resume /* If non-zero, send this signal when we resume, or to stop the thread. If stopping a thread, and this is 0, the target should stop the thread however it best decides to (e.g., SIGSTOP on - linux; SuspendThread on win32). */ + linux; SuspendThread on win32). This is a host signal value (not + enum target_signal). */ int sig; }; |