2011-08-01 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Mon, 1 Aug 2011 14:07:09 +0000 (14:07 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 1 Aug 2011 14:07:09 +0000 (14:07 +0000)
* darwin-nat.c (darwin_decode_exception_message): Adjust assertion.

gdb/ChangeLog
gdb/darwin-nat.c

index 175f36389c8bcb0cf650a991080e6c226fa75904..f7615950f1ccf14d3ec1f0c5d010f7cfb9bc2486 100644 (file)
@@ -1,3 +1,7 @@
+2011-08-01  Tristan Gingold  <gingold@adacore.com>
+
+       * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
+
 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        * breakpoint.c (insert_bp_location): Document return value.
index 27c6e2c7dc302836a7105510f35f51d2450a4e66..06a155856482582d9b226e86c46977229e297eeb 100644 (file)
@@ -615,8 +615,11 @@ darwin_decode_exception_message (mach_msg_header_t *hdr,
     return -1;
   *pthread = thread;
 
+  /* The thread should be running.  However we have observed cases where a thread
+     got a SIGTTIN message after being stopped.  */
+  gdb_assert (thread->msg_state != DARWIN_MESSAGE);
+
   /* Finish decoding.  */
-  gdb_assert (thread->msg_state == DARWIN_RUNNING);
   thread->event.header = *hdr;
   thread->event.thread_port = thread_port;
   thread->event.task_port = task_port;