From: Jan Kratochvil Date: Sun, 25 Jul 2010 10:15:54 +0000 (+0000) Subject: gdb/gdbserver/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30d5032895e63800c5088101fb662b6b293e224a;p=binutils-gdb.git gdb/gdbserver/ * server.c (handle_target_event): Use target_signal_to_host for resume_info.sig initialization. * target.h (struct thread_resume) : New comment. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0d16be9f0c1..be333067bcc 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2010-07-25 Jan Kratochvil + + * server.c (handle_target_event): Use target_signal_to_host for + resume_info.sig initialization. + * target.h (struct thread_resume) : New comment. + 2010-07-20 Ozkan Sezer * server.c (handle_query): strcpy() the returned string from paddress() diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 29b6cdcd1a8..22f25c54145 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 e974ecb0b5a..1f9f921c68b 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; };