llvm-project/lldb/test
Pavel Labath 9e131f7fef Fix race condition in process resume
Summary:
Gdb-remote's async thread sent out the eBroadcastBitRunPacketSent message *before* actually
sending out the continue packet. Since it's this message the actually triggers the public state
transition, it could happen (and it did happen in TestAttachResume, which does an "process
interrupt" right after a continue) that we attempt to stop the inferior before it was actually
started (which obviously did not end well). This fixes the problem by moving the broadcast after
the packet was actually sent.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D14083

llvm-svn: 251399
2015-10-27 09:23:55 +00:00
..
android/platform Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
api Fixed the test suite on MacOSX so that "test/api/multithreaded/TestMultithreaded.py" works without errors. 2015-10-26 17:52:16 +00:00
arm_emulation Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
attic Python3 - Wrap more statements in calls to list() 2015-10-23 17:53:51 +00:00
benchmarks Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
driver/batch_mode Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
example Fix usages of range() and xrange() for Python 3. 2015-10-26 16:49:57 +00:00
expression_command Port the python api decorator to use test categories 2015-10-26 09:28:32 +00:00
functionalities Fix race condition in process resume 2015-10-27 09:23:55 +00:00
help Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
lang Convert `long` to `int`, and portably detect all integral types. 2015-10-26 16:51:09 +00:00
linux Convert deprecated unittest method names. 2015-10-26 16:50:39 +00:00
logging Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
macosx Port the python api decorator to use test categories 2015-10-26 09:28:32 +00:00
make Fix libstdc++ data formatters on Ubuntu 15.10 x86_64 2015-10-22 00:23:38 +00:00
plugins Python3 - Change `dict.has_key(x)` to `x in dict` 2015-10-26 16:50:51 +00:00
python_api Python3 - Change sys.maxint to sys.maxsize. 2015-10-26 16:51:20 +00:00
settings Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
source-manager Port the python api decorator to use test categories 2015-10-26 09:28:32 +00:00
terminal Wrap call to zip() in list() 2015-10-26 16:51:28 +00:00
test_runner Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
tools Remove use of octal literals. 2015-10-26 18:48:14 +00:00
types Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
warnings/uuid Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
.categories Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
CMakeLists.txt Roll dosep.py parallel test runner into dotest.py command line 2015-09-03 18:58:44 +00:00
Makefile Roll dosep.py parallel test runner into dotest.py command line 2015-09-03 18:58:44 +00:00
README-TestSuite Comment discouraging writing command based test cases. 2015-03-18 23:16:58 +00:00
bench-history
bench.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
blacklist.py
crashinfo.c Alignment fix 2014-01-08 03:14:18 +00:00
curses_results.py Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
dosep.py Python3 - Wrap more statements in calls to list() 2015-10-23 17:53:51 +00:00
dotest.py Python 3: Convert uses of `callable(x)` to `six.callable(x)`. 2015-10-26 18:48:24 +00:00
dotest_args.py Port the python api decorator to use test categories 2015-10-26 09:28:32 +00:00
dotest_channels.py Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
lldb_pylint_helper.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
lldb_shared.py Introduce a mechanism for reusing Python modules out of tree. 2015-10-20 21:05:57 +00:00
lldbbench.py
lldbcurses.py Python 3: Convert uses of `callable(x)` to `six.callable(x)`. 2015-10-26 18:48:24 +00:00
lldbinline.py Python3 - Wrap more statements in calls to list() 2015-10-23 17:53:51 +00:00
lldbpexpect.py Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
lldbplatformutil.py Make several test case arm32 compatible 2015-04-17 09:37:06 +00:00
lldbtest.py Python 3: Convert uses of `callable(x)` to `six.callable(x)`. 2015-10-26 18:48:24 +00:00
lldbtest_config.py Refactored lldb executable name discovery 2015-05-18 19:39:03 +00:00
lldbutil.py Python 3: Convert uses of `callable(x)` to `six.callable(x)`. 2015-10-26 18:48:24 +00:00
lock.py dotest.py - debug feature that helps find dosep races 2015-05-21 19:09:29 +00:00
progress.py Make uses of unicode literals portable. 2015-10-23 19:52:36 +00:00
redo.py Add from __future__ import print_function everywhere. 2015-10-23 17:04:29 +00:00
test_categories.py Port the python api decorator to use test categories 2015-10-26 09:28:32 +00:00
test_results.py Make uses of unicode literals portable. 2015-10-23 19:52:36 +00:00