[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 ...
[lldb] [test] Update baseline test status for FreeBSDFixes #19721Fixes #18440Partially fixes bug #47660Fixes #47761Fixes #47763Sponsored by: The FreeBSD Foundation
[lldb] Enable TestThreadStepOut on linuxAfter applying the same for as in TestThreadBacktraceRepeat, the testappears to pass reliably. The skip decorator was added many years ago,so it's not clea
[lldb] Enable TestThreadStepOut on linuxAfter applying the same for as in TestThreadBacktraceRepeat, the testappears to pass reliably. The skip decorator was added many years ago,so it's not clear whether this is what caused it to hang.
[lldb] Remove lldbtest.getBuildFlagsIt was being used only in some very old tests (which pass even withoutit) and its implementation is highly questionable.These days we have different mechanism
[lldb] Remove lldbtest.getBuildFlagsIt was being used only in some very old tests (which pass even withoutit) and its implementation is highly questionable.These days we have different mechanisms for requesting a build with aparticular kind of c++ library (USE_LIB(STD)CPP in the makefile).
Don't assume that stepping out of a function will land on the next line.For instance, some recent clang emits this code on x86_64: 0x100002b99 <+57>: callq 0x100002b40 ; step_ou
Don't assume that stepping out of a function will land on the next line.For instance, some recent clang emits this code on x86_64: 0x100002b99 <+57>: callq 0x100002b40 ; step_out_of_here at main.cpp:11-> 0x100002b9e <+62>: xorl %eax, %eax 0x100002ba0 <+64>: popq %rbp 0x100002ba1 <+65>: retqand the "xorl %eax, %eax" is attributed to the same line as the callq. Sincestep out is supposed to stop just on returning from the function, you can't guaranteeit will end up on the next line. I changed the test to check that we were eitheron the call line or on the next line, since either would be right depending on thedebug information.
Reland [lldb] Fix TestThreadStepOut.py after "Flush local value map on every instruction"The original patch got reverted as a dependency of cf1c774d6ace59c5adc9ab71b31e .That patch got relanded so
Reland [lldb] Fix TestThreadStepOut.py after "Flush local value map on every instruction"The original patch got reverted as a dependency of cf1c774d6ace59c5adc9ab71b31e .That patch got relanded so it's also necessary to reland this patch.Original summary:After cf1c774d6ace59c5adc9ab71b31e762c1be695b1, Clang seems to generate codethat is more similar to icc/Clang, so we can use the same line numbers forall compilers in this test.
[lldb] [test] Fix continue_to_breakpoint() args in TestThreadStepOutThe test is skipped/xfailing on all platforms, so it seems that the APIgot out of sync. Fix that so it returns to a 'proper' fa
[lldb] [test] Fix continue_to_breakpoint() args in TestThreadStepOutThe test is skipped/xfailing on all platforms, so it seems that the APIgot out of sync. Fix that so it returns to a 'proper' failureon FreeBSD.Differential Revision: https://reviews.llvm.org/D92746
Revert "[FastISel] Flush local value map on ever instruction" and dependent patchesThis reverts commit cf1c774d6ace59c5adc9ab71b31e762c1be695b1.This change caused several regressions in the gdb t
Revert "[FastISel] Flush local value map on ever instruction" and dependent patchesThis reverts commit cf1c774d6ace59c5adc9ab71b31e762c1be695b1.This change caused several regressions in the gdb test suite - at leasta sample of which was due to line zero instructions making breakpointsun-lined. I think they're worth investigating/understanding more (&possibly addressing) before moving forward with this change.Revert "[FastISel] NFC: Clean up unnecessary bookkeeping"This reverts commit 3fd39d3694d32efa44242c099e923a7f4d982095.Revert "[FastISel] NFC: Remove obsolete -fast-isel-sink-local-values option"This reverts commit a474657e30edccd9e175d92bddeefcfa544751b2.Revert "Remove static function unused after cf1c774."This reverts commit dc35368ccf17a7dca0874ace7490cc3836fb063f.Revert "[lldb] Fix TestThreadStepOut.py after "Flush local value map on every instruction""This reverts commit 53a14a47ee89dadb8798ca8ed19848f33f4551d5.
[lldb] Fix TestThreadStepOut.py after "Flush local value map on every instruction"After cf1c774d6ace59c5adc9ab71b31e762c1be695b1, Clang seems to generate codethat is more similar to icc/Clang, so
[lldb] Fix TestThreadStepOut.py after "Flush local value map on every instruction"After cf1c774d6ace59c5adc9ab71b31e762c1be695b1, Clang seems to generate codethat is more similar to icc/Clang, so we can use the same line numbers forall compilers in this test.
[arm64] Remove an old special case that's not needed anymore.Debug info generation & codegen now steps onto the correct line.
[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