[lldb] Add support to load object files from thin archivesThis fixes https://github.com/llvm/llvm-project/issues/50114 where lldb/maccan't load object files from thin archives. This patch allows
[lldb] Add support to load object files from thin archivesThis fixes https://github.com/llvm/llvm-project/issues/50114 where lldb/maccan't load object files from thin archives. This patch allows lldb to identifythin archives, and load object files contained in them.Differential Revision: https://reviews.llvm.org/D126464
show more ...
[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
[lldb] XFAIL tests that aren't passing remotelyXFAIL a series of tests that are failing remotely.
[lldb] Make TestBSDArchives a no-debug-info-testThe DSYM variant of this test is failing since D94890. But as we explicitlytry to disable the DSYM generation in the makefile and build the archive
[lldb] Make TestBSDArchives a no-debug-info-testThe DSYM variant of this test is failing since D94890. But as we explicitlytry to disable the DSYM generation in the makefile and build the archive onour own, I don't see why we even need to run the DSYM version of the test.This patch disables the generated derived versions of this test for thedifferent debug information containers (which includes the failing DSYM one).
Makefile.rules: Avoid redundant .d generation (make restart) and inline archive rule to the only testTake an example when `CXX_SOURCES` is main.cpp.main.d is an included file. make will rebuild m
Makefile.rules: Avoid redundant .d generation (make restart) and inline archive rule to the only testTake an example when `CXX_SOURCES` is main.cpp.main.d is an included file. make will rebuild main.d, re-executes itself [1] to readin the new main.d file, then rebuild main.o, finally link main.o into a.out.main.cpp is parsed twice in this process.This patch merges .d generation into .o generation [2], writes explicit rulesfor .c/.m and deletes suffix rules for %.m and %.o. Since a target can besatisfied by either of .c/.cpp/.m/.mm, we use multiple pattern rules. Therule with the prerequisite (with VPATH considered) satisfied is used [3].Since suffix rules are disabled, the implicit rule for archive member targets isno long available [4]. Rewrite, simplify the archive rule and inline it into theonly test `test/API/functionalities/archives/Makefile`.[1]: https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html[2]: http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/[3]: https://www.gnu.org/software/make/manual/html_node/Pattern-Match.html[4]: https://www.gnu.org/software/make/manual/html_node/Archive-Update.htmlObjC/ObjCXX tests only run on macOS. I don't have testing environment. Hopesomeone can do it for me.Reviewed By: JDevlieghereDifferential Revision: https://reviews.llvm.org/D94890
[lldb] Add expect_var_path to test variable path resultsThis adds `expect_var_path` to test variable paths so we no longer have touse `frame var` and find substrs in the command output. The behavi
[lldb] Add expect_var_path to test variable path resultsThis adds `expect_var_path` to test variable paths so we no longer have touse `frame var` and find substrs in the command output. The behaviouris identical with `expect_expr` (and it also uses the same checking backend),but it instead calls `GetValueForVariablePath` to evaluate the string as a variablepath.Also rewrites a few of the tests that previously used `frame variable` to use`expect_var_path`.Reviewed By: labathDifferential Revision: https://reviews.llvm.org/D90450
[lldb] Remove license headers from all test source filesSummary:Around a third of our test sources have LLVM license headers. This patch removes those headers from all testsources and also fixes
[lldb] Remove license headers from all test source filesSummary:Around a third of our test sources have LLVM license headers. This patch removes those headers from all testsources and also fixes any tests that depended on the length of the license header.The reasons for this are:* A few tests verify line numbers and will start failing if the number of lines in the LLVM license header changes. Once I landed my patch for valid SourceLocations in debug info we will probably have even more tests that verify line numbers.* No other LLVM project is putting license headers in its test files to my knowledge.* They make the test sources much more verbose than they have to be. Several tests have longer license headers than the actual test source.For the record, the following tests had their line numbers changed to pass with the removal of the license header: lldb-api :: functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py lldb-shell :: Reproducer/TestGDBRemoteRepro.test lldb-shell :: Reproducer/TestMultipleTargets.test lldb-shell :: Reproducer/TestReuseDirectory.test lldb-shell :: ExecControl/StopHook/stop-hook-threads.test lldb-shell :: ExecControl/StopHook/stop-hook.test lldb-api :: lang/objc/exceptions/TestObjCExceptions.pyReviewers: #lldb, espindola, JDevlieghereReviewed By: #lldb, JDevlieghereSubscribers: emaste, aprantl, arphaman, JDevlieghere, lldb-commitsTags: #lldbDifferential Revision: https://reviews.llvm.org/D74839
[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