[lldb] Reduce code duplication around inferior building
authorPavel Labath <pavel@labath.sk>
Mon, 18 Oct 2021 12:45:57 +0000 (14:45 +0200)
committerPavel Labath <pavel@labath.sk>
Tue, 19 Oct 2021 10:09:41 +0000 (12:09 +0200)
commit8bac18be0e45adc7b096375bf4f65635fb994df0
tree43bd3deeb4c38c6b9b00f81291f2f51e846ebf84
parent9a57d1e52680ac05c29d6d0d2cfbaf3b05a5cbce
[lldb] Reduce code duplication around inferior building

We had two sets of build<flavour> methods, whose bodies were largely
identical. This makes any kind of modification in their vicinity
repetitive and error-prone.

Replace each set with a single method taking an optional debug_info
parameter.

Differential Revision: https://reviews.llvm.org/D111989
lldb/docs/testsuite/a-detailed-walkthrough.txt
lldb/packages/Python/lldbsuite/test/README-TestSuite
lldb/packages/Python/lldbsuite/test/builders/builder.py
lldb/packages/Python/lldbsuite/test/builders/darwin.py
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
lldb/test/API/commands/add-dsym/uuid/TestAddDsymCommand.py
lldb/test/API/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py
lldb/test/API/macosx/add-dsym/TestAddDsymDownload.py
lldb/test/API/macosx/add-dsym/TestAddDsymMidExecutionCommand.py