gdb/gdbserver/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 25 Jul 2010 10:15:54 +0000 (10:15 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 25 Jul 2010 10:15:54 +0000 (10:15 +0000)
* server.c (handle_target_event): Use target_signal_to_host for
resume_info.sig initialization.
* target.h (struct thread_resume) <sig>: New comment.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c
gdb/gdbserver/target.h

index 0d16be9..be33306 100644 (file)
@@ -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()
index 29b6cdc..22f25c5 100644 (file)
@@ -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)
index e974ecb..1f9f921 100644 (file)
@@ -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;
 };