[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] Split TestCxxChar8_tSplit TestCxxChar8_t into two parts: one that check reading variableswithout a process and another part with. This allows us to skip theformer on Apple Silicon, where l
[lldb] Split TestCxxChar8_tSplit TestCxxChar8_t into two parts: one that check reading variableswithout a process and another part with. This allows us to skip theformer on Apple Silicon, where lack of support for chained fix-upscauses the test to fail.Differential revision: https://reviews.llvm.org/D114819
[lldb] (Partially) enable formatting of utf strings before the program is startedThe StringPrinter class was using a Process instance to read memory.This automatically prevented it from working be
[lldb] (Partially) enable formatting of utf strings before the program is startedThe StringPrinter class was using a Process instance to read memory.This automatically prevented it from working before starting theprogram.This patch changes the class to use the Target object for readingmemory, as targets are always available. This required movingReadStringFromMemory from Process to Target.This is sufficient to make frame/target variable work, but furtherchanges are necessary for the expression evaluator. Preliminary analysisindicates the failures are due to the expression result ValueObjectsfailing to provide an address, presumably because we're operating onfile addresses before starting. I haven't looked into what would it taketo make that work.Differential Revision: https://reviews.llvm.org/D113098
Recommit: Compress formatting of array type names (int [4] -> int[4])Based on post-commit review discussion on2bd84938470bf2e337801faafb8a67710f46429d with Richard Smith.Other uses of forcing Ha
Recommit: Compress formatting of array type names (int [4] -> int[4])Based on post-commit review discussion on2bd84938470bf2e337801faafb8a67710f46429d with Richard Smith.Other uses of forcing HasEmptyPlaceHolder to false seem OK to me -they're all around pointer/reference types where the pointer/referencetoken will appear at the rightmost side of the left side of the typename, so they make nested types (eg: the "int" in "int *") behave asthough there is a non-empty placeholder (because the "*" is essentiallythe placeholder as far as the "int" is concerned).This was originally committed in 277623f4d5a672d707390e2c3eaf30a9eb4b075cReverted in f9ad1d1c775a8e264bebc15d75e0c6e5c20eefc7 due to breakagesoutside of clang - lldb seems to have some strange/strong dependence on"char [N]" versus "char[N]" when printing strings (not due to that nameappearing in DWARF, but probably due to using clang to stringify typenames) that'll need to be addressed, plus a few other odds and ends inother subprojects (clang-tools-extra, compiler-rt, etc).
[lldb][NFC] Modernize test setup code in several lang/cpp testsAll these tests can just call lldbutil.run_to_source_breakpointinstead of reimplementing it.
[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