From 484a26a8cbfeeaa90cf93f056247ceec0d501c59 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 1 Aug 2011 14:07:09 +0000 Subject: [PATCH] 2011-08-01 Tristan Gingold * darwin-nat.c (darwin_decode_exception_message): Adjust assertion. --- gdb/ChangeLog | 4 ++++ gdb/darwin-nat.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 175f36389c..f7615950f1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-08-01 Tristan Gingold + + * darwin-nat.c (darwin_decode_exception_message): Adjust assertion. + 2011-07-31 Thiago Jung Bauermann * breakpoint.c (insert_bp_location): Document return value. diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 27c6e2c7dc..06a1558564 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;