2011-08-01 Tristan Gingold <gingold@adacore.com>

* darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
This commit is contained in:
Tristan Gingold 2011-08-01 14:07:09 +00:00
parent a8040cf231
commit 484a26a8cb
2 changed files with 8 additions and 1 deletions

View 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.

View 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;