[LLDB][DataFormatter] Add support for std::__map_const_iteratorThis patch adds support for formatting `std::map::const_iterator`.It's just a matter of adding `const_` to the existing regex.**Tes
[LLDB][DataFormatter] Add support for std::__map_const_iteratorThis patch adds support for formatting `std::map::const_iterator`.It's just a matter of adding `const_` to the existing regex.**Testing*** Added test case to existing API testsDifferential Revision: https://reviews.llvm.org/D129962
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] Add support for checking children in expect_exprexpect_expr currently can't verify the children of the result SBValue.This patch adds the ability to check them. The idea is to have a Check
[lldb] Add support for checking children in expect_exprexpect_expr currently can't verify the children of the result SBValue.This patch adds the ability to check them. The idea is to have a CheckValueclass where one can specify what attributes of a SBValue should be checked.Beside the properties we already check for (summary, type, etc.) this alsohas a list of children which is again just a list of CheckValue object (whichcan also have children of their own).The main motivation is to make checking the children no longer basedon error-prone substring checks that allow tests to pass just becausefor example the error message contains the expected substrings by accident.I also expect that we can just have a variant of `expect_expr` for LLDB'sexpression paths (aka 'frame var') feature.Reviewed By: labathDifferential Revision: https://reviews.llvm.org/D83792
[lldb] Let TypeSystemClang::GetDisplayTypeName remove anonymous and inline namespaces.Summary:Currently when printing data types we include implicit scopes such as inline namespaces or anonymous n
[lldb] Let TypeSystemClang::GetDisplayTypeName remove anonymous and inline namespaces.Summary:Currently when printing data types we include implicit scopes such as inline namespaces or anonymous namespaces.This leads to command output like this (for `std::set<X>` with X being in an anonymous namespace):```(lldb) print my_set(std::__1::set<(anonymous namespace)::X, std::__1::less<(anonymous namespace)::X>, std::__1::allocator<(anonymous namespace)::X> >) $0 = size=0 {}```This patch removes all the implicit scopes when printing type names in TypeSystemClang::GetDisplayTypeNameso that our output now looks like this:```(lldb) print my_set(std::set<X, std::less<X>, std::allocator<X> >) $0 = size=0 {}```As previously GetDisplayTypeName and GetTypeName had the same output we actually often used thetwo as if they are the same method (they were in fact using the same implementation), so this patch alsofixes the places where we actually want the display type name and not the actual type name.Note that this doesn't touch the `GetTypeName` class that for example the data formatters use, so this patchis only changes the way we display types to the user. The full type name can also still be found when passing'-R' to see the raw output of a variable in case someone is somehow interested in that.Partly fixes rdar://problem/59292534Reviewers: shafik, jinghamReviewed By: shafikSubscribers: christof, JDevlieghere, lldb-commitsTags: #lldbDifferential Revision: https://reviews.llvm.org/D74478
[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