llvm-project/lldb/unittests
Ilya Bukonkin 3b43f00629 [lldb] Check if thread was suspended during previous stop added.
Encountered the following situation: Let we started thread T1 and it hit
breakpoint on B1 location. We suspended T1 and continued the process.
Then we started thread T2 which hit for example the same location B1.
This time in a breakpoint callback we decided not to stop returning
false.

Expected result: process continues (as if T2 did not hit breakpoint) its
workflow with T1 still suspended. Actual result: process do stops (as if
T2 callback returned true).

Solution: We need invalidate StopInfo for threads that was previously
suspended just because something that is already inactive can not be the
reason of stop. Thread::GetPrivateStopInfo() may be appropriate place to
do it, because it gets called (through Thread::GetStopInfo()) every time
before process reports stop and user gets chance to change
m_resume_state again i.e if we see m_resume_state == eStateSuspended
it definitely means it was set during previous stop and it also means
this thread can not be stopped again (cos' it was frozen during
previous stop).

Differential revision: https://reviews.llvm.org/D80112
2020-06-11 15:02:46 -07:00
..
API [lldb/CMake] Set the PYTHON_RPATH for the unit tests 2020-04-30 11:05:50 -07:00
Breakpoint [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Core [lldb] Fix SourceManager::SourceFileCache insertion 2020-04-20 16:25:54 +02:00
DataFormatter [lldb/StringPrinter] Support strings with invalid utf8 sub-sequences 2020-06-03 12:24:23 -07:00
Disassembler [lldb/Plugins] Rename lldbPluginDisassemblerLLVM (NFC) 2020-02-17 19:14:01 -08:00
Editline [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Expression [lldb] Fail evaluation of DWARF expressions with unknown opcodes 2020-06-08 15:52:28 +02:00
Host Move the Xcode SDK path caching to HostInfo 2020-05-06 13:43:50 -07:00
Instruction Fix UB in EmulateInstructionARM64.cpp 2020-06-01 18:11:50 -07:00
Interpreter Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Language Revert "[lldb/test] Move "DataFormatters/Mock.h" to "Plugins/Language/ObjC/Utilities.h"" 2020-05-20 12:44:18 +02:00
ObjectFile Support build-ids of other sizes than 16 in UUID::SetFromStringRef 2020-06-07 10:03:41 +00:00
Platform Move GetXcode*Directory into HostInfo (NFC) 2020-06-05 11:59:22 -07:00
Process [lldb] Check if thread was suspended during previous stop added. 2020-06-11 15:02:46 -07:00
ScriptInterpreter [lldb/Interpreter] Support color in CommandReturnObject 2020-06-09 10:45:45 -07:00
Signals [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Symbol [lldb] Don't complete ObjCInterfaceDecls in ClangExternalASTSourceCallbacks::FindExternalVisibleDeclsByName 2020-05-27 12:39:24 +02:00
SymbolFile [lldb] Remove custom DWARF expression printing code 2020-05-25 16:09:25 +02:00
Target Support build-ids of other sizes than 16 in UUID::SetFromStringRef 2020-06-07 10:03:41 +00:00
TestingSupport [lldb] Fix YAMLModuleTester for the rename in 67b4afc4 2020-06-08 13:34:03 +02:00
Thread [lldb] Check if thread was suspended during previous stop added. 2020-06-11 15:02:46 -07:00
UnwindAssembly Bug where insn-based unwind plans on arm64 could be wrong 2020-04-14 16:57:25 -07:00
Utility Support build-ids of other sizes than 16 in UUID::SetFromStringRef 2020-06-07 10:03:41 +00:00
debugserver [lldb] Make RNBSocketTest compile again after socket modernization 2020-04-23 17:00:02 +02:00
tools [lldb] Change Communication::SetConnection to take a unique_ptr 2020-04-02 14:42:25 +02:00
CMakeLists.txt [lldb] Check if thread was suspended during previous stop added. 2020-06-11 15:02:46 -07:00
gtest_common.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00