summaryrefslogtreecommitdiff
path: root/gdb/darwin-nat.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-01 14:07:06 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-01 14:07:06 +0000
commit572ae324f6fb3c4ba2f8ca68d128d64692f29fcf (patch)
tree322a88606c922eab2830850bf9b813fce8aa8f98 /gdb/darwin-nat.c
parent312edf2c03f75df48658a7ffa89e51e92e510dba (diff)
downloadgdb-572ae324f6fb3c4ba2f8ca68d128d64692f29fcf.tar.gz
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 27c6e2c7dc3..06a15585648 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;