llvm-project/lldb/test/API
Joseph Tremoulet d30797b404 [lldb] Minidump: check for .text hash match with directory
When opening a minidump, we might discover that it reports a UUID for a
module that doesn't match the build ID, but rather a hash of the .text
section (according to either of two different hash functions, used by
breakpad and Facebook respectively).  The current logic searches for a
module by filename only to check the hash; this change updates it to
first search by directory+filename.  This is important when the
directory specified in the minidump must be interpreted relative to a
user-provided sysoort, as the leaf directory won't be in the search path
in that case.

Also add a regression test; without this change, module validation fails
because we have just the placeholder module which reports as its path
the platform path in the minidump.

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D89155
2020-10-16 09:32:08 -04:00
..
android/platform [lldb] Remove license headers from all test source files 2020-02-20 08:32:01 +01:00
api [lldb] Fix TestAPILog.py for reproducer replay 2020-08-21 10:35:35 -07:00
arm [lldb/test] Skip TestBreakpointThumbCodesection on arm64. 2020-06-25 16:20:27 -07:00
assert_messages_test [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
benchmarks [lldb/Test] Add a trace method to replace print statements. 2020-05-25 11:11:46 -07:00
commands [lldb] Reject redefinitions of persistent variables 2020-10-14 10:24:35 +02:00
driver/batch_mode [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
functionalities [lldb] Minidump: check for .text hash match with directory 2020-10-16 09:32:08 -04:00
iohandler [lldb] Display autosuggestion part in gray if there is one possible suggestion 2020-08-14 11:37:49 +02:00
lang [lldb] Explicitly test the template argument SB API 2020-10-15 11:17:43 +02:00
linux [LLDB] skip TestCreateDuringInstructionStep on aarch64/linux 2020-06-29 21:32:48 +05:00
macosx [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
python_api Add an SB API to get the SBTarget from an SBBreakpoint 2020-10-15 14:28:44 -07:00
sample_test [lldb][test] Remove symlink for API tests. 2020-02-11 10:03:53 -08:00
sanity Add support for XFAILing a test based on a setting. 2020-03-12 19:26:24 -07:00
source-manager Add an option (-y) to "break set" and "source list" that uses the same 2020-07-20 17:40:36 -07:00
terminal [lldb][test] Remove symlink for API tests. 2020-02-11 10:03:53 -08:00
test_runner/test [lldb][test] Remove symlink for API tests. 2020-02-11 10:03:53 -08:00
tools [lldb] More memory allocation test fixes 2020-10-14 20:43:47 +02:00
types [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
CMakeLists.txt [lldb] Hoist -s (trace directory) argument out of LLDB_TEST_COMMON_ARGS (NFC) 2020-09-29 17:23:33 -07:00
dotest.py Re-land "[test] Split LLDB tests into API, Shell & Unit" 2019-10-09 19:22:02 +00:00
get_darwin_real_python.py [lldb/test][Darwin] Ask dyld where the real python is 2020-05-08 10:22:58 -07:00
lit.cfg.py [lldb] Add targets for running test suite against Watch/TV/iPhone simulators 2020-10-13 17:07:46 +02:00
lit.site.cfg.py.in [lldb] Use config.lldb_src_root in lit_config.load_config (NFC) 2020-09-29 23:05:12 -07:00
lldbtest.py [lldb] Make the lit configuration values optional for the API tests 2020-08-28 18:08:22 -07:00
use_lldb_suite.py [lldb/test] Use realpath consistently for test root file paths. 2020-08-05 11:35:37 -07:00