[Lldb-commits] [PATCH] D61577: [Driver] Change the way we deal with local lldbinit files.

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun May 5 18:49:30 PDT 2019


JDevlieghere created this revision.
JDevlieghere added reviewers: clayborg, labath, jingham.
Herald added a project: LLDB.

Currently we have special handling for local lldbinit files in the driver. At the same time, we have an SB API named `SourceInitFileInCurrentWorkingDirectory` that does the same thing. This patch removes the special handling from the driver and uses the API instead. In addition to the obvious advantages of having one canonical way of doing things and removing code duplication, this change also means that the code path is the same for global and local lldb init files. This is important for another patch I have in the pipeline.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D61577

Files:
  lldb/lit/Driver/Inputs/.lldbinit
  lldb/lit/Driver/LocalLLDBInit.test
  lldb/lit/helper/toolchain.py
  lldb/source/Interpreter/CommandInterpreter.cpp
  lldb/tools/driver/Driver.cpp
  lldb/tools/driver/Driver.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61577.198210.patch
Type: text/x-patch
Size: 8805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190506/9600af04/attachment.bin>


More information about the lldb-commits mailing list