projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdb: clear step over information on thread exit (PR gdb/27338)
[binutils-gdb.git]
/
gdb
/
thread.c
diff --git
a/gdb/thread.c
b/gdb/thread.c
index ca0466f35ec20d9212de964a2c98f2a3b7336a56..47cc5c9cd14ea22998e91829d248628ec0067f5a 100644
(file)
--- a/
gdb/thread.c
+++ b/
gdb/thread.c
@@
-434,6
+434,9
@@
thread_info::clear_pending_waitstatus ()
void
thread_info::set_thread_options (gdb_thread_options thread_options)
{
+ gdb_assert (this->state != THREAD_EXITED);
+ gdb_assert (!this->executing ());
+
if (m_thread_options == thread_options)
return;