diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-08-01 14:07:09 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-08-01 14:07:09 +0000 |
commit | 484a26a8cbfeeaa90cf93f056247ceec0d501c59 (patch) | |
tree | 2a4053f1297955ca36af74fdf13e4141311119a5 /gdb/darwin-nat.c | |
parent | a8040cf231c4b78568493e8f6822ea8943882ad6 (diff) | |
download | gdb-484a26a8cbfeeaa90cf93f056247ceec0d501c59.zip gdb-484a26a8cbfeeaa90cf93f056247ceec0d501c59.tar.gz gdb-484a26a8cbfeeaa90cf93f056247ceec0d501c59.tar.bz2 |
2011-08-01 Tristan Gingold <gingold@adacore.com>
* darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r-- | gdb/darwin-nat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 27c6e2c..06a1558 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -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; |