[lldb] Don't print *trailing* nuls in char arraysEmbedded nul characters are still printed, and they don't terminate thestring. See also D111634.Differential Revision: https://reviews.llvm.org/D
[lldb] Don't print *trailing* nuls in char arraysEmbedded nul characters are still printed, and they don't terminate thestring. See also D111634.Differential Revision: https://reviews.llvm.org/D120803
show more ...
[lldb] Remove summary for signed char *It conflicts with the summary for BOOL * (aka signed char *). Thispartially reverts D112709.
[lldb] Fix matchers for char array formattersThey were being applied too narrowly (they didn't cover signed char *,for instance), and too broadly (they covered SomeTemplate<char[6]>) atthe same t
[lldb] Fix matchers for char array formattersThey were being applied too narrowly (they didn't cover signed char *,for instance), and too broadly (they covered SomeTemplate<char[6]>) atthe same time.Differential Revision: https://reviews.llvm.org/D112709
[lldb] Print embedded nuls in char arrays (PR44649)When we know the bounds of the array, print any embedded nuls instead oftreating them as terminators. An exception to this rule is made for then
[lldb] Print embedded nuls in char arrays (PR44649)When we know the bounds of the array, print any embedded nuls instead oftreating them as terminators. An exception to this rule is made for thenul character at the very end of the string. We don't print that, asotherwise 99% of the strings would end in \0. This way the stringsusually come out the same as how the user typed it into the compiler(char foo[] = "with\0nuls"). It also matches how they come out in gdb.This resolves a FIXME left from D111399, and leaves another FIXME for dealingwith nul characters in "escape-non-printables=false" mode. In this mode thecharacters cause the entire summary string to be terminated prematurely.Differential Revision: https://reviews.llvm.org/D111634
[lldb] Make char[N] formatters respect the end of the array (PR44649)I believe this is a more natural behavior, and it also matches what gdbdoes.Differential Revision: https://reviews.llvm.org/D
[lldb] Make char[N] formatters respect the end of the array (PR44649)I believe this is a more natural behavior, and it also matches what gdbdoes.Differential Revision: https://reviews.llvm.org/D111399
[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