[Lldb-commits] [PATCH] D16247: Don't assume that thread 0 is always the main thread

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 15 15:54:59 PST 2016


zturner created this revision.
zturner added a reviewer: jingham.
zturner added a subscriber: lldb-commits.

Even in a single-threaded app, Windows will often create background threads on startup and these threads can appear in any order with respect to the actual main thread.  So everywhere that is doing something like `process.GetThreadAtIndex(0)` in our test suite is broken on Windows.  This fixes a large number of these cases, although there are still a few more difficult ones remaining that I don't plan to address right now.

http://reviews.llvm.org/D16247

Files:
  packages/Python/lldbsuite/test/expression_command/test/TestExprs.py
  packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py
  packages/Python/lldbsuite/test/functionalities/conditional_break/TestConditionalBreak.py
  packages/Python/lldbsuite/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py
  packages/Python/lldbsuite/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
  packages/Python/lldbsuite/test/functionalities/thread/state/TestThreadStates.py
  packages/Python/lldbsuite/test/lang/c/array_types/TestArrayTypes.py
  packages/Python/lldbsuite/test/lang/c/bitfields/TestBitfields.py
  packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py
  packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypes.py
  packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py
  packages/Python/lldbsuite/test/lang/cpp/diamond/TestDiamond.py
  packages/Python/lldbsuite/test/lang/cpp/stl/TestStdCXXDisassembly.py
  packages/Python/lldbsuite/test/python_api/frame/TestFrames.py
  packages/Python/lldbsuite/test/python_api/frame/inlines/TestInlinedFrame.py
  packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py
  packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16247.45046.patch
Type: text/x-patch
Size: 25321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160115/dbb7964d/attachment-0001.bin>


More information about the lldb-commits mailing list