[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
show more ...
Support v2 of 'main bin spec' Mach-O LC_NOTE in corefilesVersion 2 of 'main bin spec' LC_NOTE allows for the specificationof a slide of where the binary is loaded in the corefile virtualaddress s
Support v2 of 'main bin spec' Mach-O LC_NOTE in corefilesVersion 2 of 'main bin spec' LC_NOTE allows for the specificationof a slide of where the binary is loaded in the corefile virtualaddress space. It also adds a (currently unused) platform fieldfor the main binary.Some corefile creators will only have a UUID and an offset to beapplied to the binary.Changed TestFirmwareCorefiles.py to test this new form of'main bin spec' with a slide, and also to run on both x86_64and arm64 macOS systems.Differential Revision: https://reviews.llvm.org/D116094rdar://85938455
Read and write a LC_NOTE "addrable bits" for addressing maskThis patch adds code to process save-core for Mach-O files whichembeds an "addrable bits" LC_NOTE when the process is using acode addre
Read and write a LC_NOTE "addrable bits" for addressing maskThis patch adds code to process save-core for Mach-O files whichembeds an "addrable bits" LC_NOTE when the process is using acode address mask (e.g. AArch64 v8.3 with ptrauth aka arm64e).Add code to ObjectFileMachO to read that LC_NOTE from corefiles,and ProcessMachCore to set the process masks based on it when readinga corefile back in.Also have "process status --verbose" print the current address masksthat lldb is using internally to strip ptrauth bits off of addresses.Differential Revision: https://reviews.llvm.org/D106348rdar://68630113
Reorg firmware corefile tests; add test for OS plugin loadingA little cleanup to how these firmware corefile tests are done; adda test that loads a dSYM that loads an OS plugin, and confirm thatt
Reorg firmware corefile tests; add test for OS plugin loadingA little cleanup to how these firmware corefile tests are done; adda test that loads a dSYM that loads an OS plugin, and confirm thatthe OS plugin's threads are created.
Handle all standalone combinations of LC_NOTEs w/ & w/o addr & uuidFill out ProcessMachCore::DoLoadCore to handle LC_NOTE hints witha UUID or with a UUID+address, and load the binary at the specif
Handle all standalone combinations of LC_NOTEs w/ & w/o addr & uuidFill out ProcessMachCore::DoLoadCore to handle LC_NOTE hints witha UUID or with a UUID+address, and load the binary at the specifiedoffset correctly. Add tests for all four combinations. ChangeDynamicLoaderStatic to not re-set a Section's load address in theTarget if it's already been specified.Differential Revision: https://reviews.llvm.org/D99571rdar://51490545
Ignore DBGArchitecture from dsymForUUID's plistWhen the architecture from the returned plist differs from thearchitecture lldb will pick when loading the binary file, lldb willreject the binary a
Ignore DBGArchitecture from dsymForUUID's plistWhen the architecture from the returned plist differs from thearchitecture lldb will pick when loading the binary file, lldb willreject the binary as not matching. We are working with UUID's inthis case, so an architecture is not disambiguating anything; itjust opens this possibility for failing to load the specified binary.Stop reading the architecture from the plist.<rdar://problem/71612561>Differential revision: https://reviews.llvm.org/D92692
Add support for firmware/standalone LC_NOTE "main bin spec" corefilesWhen a Mach-O corefile has an LC_NOTE "main bin spec" for astandalone binary / firmware, with only a UUID and no loadaddress,
Add support for firmware/standalone LC_NOTE "main bin spec" corefilesWhen a Mach-O corefile has an LC_NOTE "main bin spec" for astandalone binary / firmware, with only a UUID and no loadaddress, try to locate the binary and dSYM by UUID and iffound, load it at offset 0 for the user.Add a test case that tests a firmware/standalone corefilewith both the "kern ver str" and "main bin spec" LC_NOTEs.<rdar://problem/68193804>Differential Revision: https://reviews.llvm.org/D88282
[lldb] NFC: Fix trivial typo in comments, documents, and messagesDifferential Revision: https://reviews.llvm.org/D77460
[lldb][test] Remove symlink for API tests.Summary: Moves lldbsuite tests to lldb/test/API.This is a largely mechanical change, moved with the following steps:```rm lldb/test/API/testcasesmkdi
[lldb][test] Remove symlink for API tests.Summary: Moves lldbsuite tests to lldb/test/API.This is a largely mechanical change, moved with the following steps:```rm lldb/test/API/testcasesmkdir -p lldb/test/API/{test_runner/test,tools/lldb-{server,vscode}}mv lldb/packages/Python/lldbsuite/test/test_runner/test lldb/test/API/test_runnerfor d in $(find lldb/packages/Python/lldbsuite/test/* -maxdepth 0 -type d | egrep -v "make|plugins|test_runner|tools"); do mv $d lldb/test/API; donefor d in $(find lldb/packages/Python/lldbsuite/test/tools/lldb-vscode -maxdepth 1 -mindepth 1 | grep -v ".py"); do mv $d lldb/test/API/tools/lldb-vscode; donefor d in $(find lldb/packages/Python/lldbsuite/test/tools/lldb-server -maxdepth 1 -mindepth 1 | egrep -v "gdbremote_testcase.py|lldbgdbserverutils.py|socket_packet_pump.py"); do mv $d lldb/test/API/tools/lldb-server; done```lldb/packages/Python/lldbsuite/__init__.py and lldb/test/API/lit.cfg.py were also updated with the new directory structure.Reviewers: labath, JDevlieghereTags: #lldbDifferential Revision: https://reviews.llvm.org/D71151