llvm-project/lldb/unittests
Jim Ingham 3339000e0b We don't require users to type out the full context of a function, for
symbol name matches. Instead, we extract the incoming path's base
name, look up all the symbols with that base name, and then compare
the rest of the context that the user provided to make sure it
matches. However, we do this comparison using just a strstr. So for
instance:

break set -n foo::bar

will match not only "a::foo::bar" but "notherfoo::bar". The former is
pretty clearly the user's intent, but I don't think the latter is, and
results in breakpoints picking up too many matches.

This change adds a Language::DemangledNameContainsPath API which can
do a language aware match against the path provided. If the language
doesn't provide this we fall back to the strstr (though that's changed
to StringRef::contains in the patch).

Differential Revision: https://reviews.llvm.org/D124579
2022-05-12 12:39:28 -07:00
..
API [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
Breakpoint [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Core [lldb] Report debugger diagnostics as events 2022-03-16 08:33:01 -07:00
DataFormatter [nfc] [lldb] Prevent needless copies of DataExtractor 2021-08-04 20:35:53 +02:00
Disassembler [lldb/Plugins] Rename lldbPluginDisassemblerLLVM (NFC) 2020-02-17 19:14:01 -08:00
Editline Re-land "[lldb] Synchronize output through the IOHandler" 2022-03-15 12:53:46 -07:00
Expression [LLDB] Remove cases of using namespace llvm:: from header file 2022-03-03 10:39:06 -08:00
Host [lldb] Remove ConnectionFileDescriptorTest.Connectv(4|6) 2022-04-28 15:40:21 -07:00
Instruction Fix UB in EmulateInstructionARM64.cpp 2020-06-01 18:11:50 -07:00
Interpreter [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
Language We don't require users to type out the full context of a function, for 2022-05-12 12:39:28 -07:00
ObjectFile [lldb] Test parsing the symtab with indirect symbols from the shared cache 2022-03-23 21:13:55 -07:00
Platform [lldb] Fixup af921006d3 for non-linux platforms 2022-04-13 15:38:36 +02:00
Process [trace][intelpt] Support system-wide tracing [3] - Refactor IntelPTThreadTrace 2022-05-09 16:05:26 -07:00
ScriptInterpreter Remove Python 2 support from the ScriptInterpreter plugin 2022-04-27 08:26:25 -07:00
Signals [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Symbol Fix the encoding and decoding of UniqueCStringMap<T> objects when saved to cache files. 2022-04-29 11:31:47 -07:00
SymbolFile [lldb] Fix nondeterminism in DWARFIndexCachingTest 2022-05-03 10:28:47 +02:00
Target [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
TestingSupport Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"." 2022-03-04 13:45:43 -08:00
Thread [lldb] Return StringRef from PluginInterface::GetPluginName 2021-10-18 10:14:42 +02:00
UnwindAssembly Update the CFA to use $sp when $fp is restored on arm64 2022-05-04 14:54:17 -07:00
Utility [lldb] Expand $ when using tcsh 2022-04-13 13:01:09 -07:00
debugserver [lldb] [unittests] Fix TcpListen() call in RNBSocketTest 2021-10-26 21:08:03 +02:00
tools [lldb/host] Remove monitor_signals argument from process monitoring functions 2022-02-24 11:12:59 +01:00
CMakeLists.txt Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"." 2022-03-04 13:45:43 -08:00
gtest_common.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00