gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 26 Nov 2010 03:39:10 +0000 (03:39 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 26 Nov 2010 03:39:10 +0000 (03:39 +0000)
* infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
the comment.
(save_inferior_thread_state): Reset tp->stop_signal.

gdb/ChangeLog
gdb/infrun.c

index 414595f8cd36a464bb478f2ba37ece7da9b1c539..39abfcf35d6eede23979af04f3731a525ef3d69b 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
+       the comment.
+       (save_inferior_thread_state): Reset tp->stop_signal.
+
 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * infcall.c (call_function_by_hand): Remove variable
index bcd991e0ec5bee20641e9d5b74fd205dccdefc5b..80086b18f99ba81623262d578759384c19bf254a 100644 (file)
@@ -6047,7 +6047,7 @@ struct inferior_thread_state
   CORE_ADDR stop_pc;
   struct regcache *registers;
 
-  /* Format of SIGINFO or NULL if it is not present.  */
+  /* Format of SIGINFO_DATA or NULL if it is not present.  */
   struct gdbarch *siginfo_gdbarch;
 
   /* The inferior format depends on SIGINFO_GDBARCH and it has a length of
@@ -6094,6 +6094,10 @@ save_inferior_thread_state (void)
     }
 
   inf_state->stop_signal = tp->stop_signal;
+  /* run_inferior_call will not use the signal due to its `proceed' call with
+     TARGET_SIGNAL_0 anyway.  */
+  tp->stop_signal = TARGET_SIGNAL_0;
+
   inf_state->stop_pc = stop_pc;
 
   inf_state->registers = regcache_dup (regcache);