[Lldb-commits] [PATCH] D141219: Add a .lldbinit file to autoload LLVM/Clang data formatters
Alexander Richardson via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Jan 8 02:38:10 PST 2023
arichardson created this revision.
arichardson added a reviewer: LLDB.
Herald added a project: All.
arichardson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This makes it much easier to debug LLVM/Clang when using an IDE such as
CLion that defaults to using the project root directory as the CWD for
run targets and therefore allows for this file to be loaded. The only
thing that needs to be configured manually is setting
`settings set target.load-cwd-lldbinit true` in ~/.lldbinit
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141219
Files:
.lldbinit
Index: .lldbinit
===================================================================
--- /dev/null
+++ .lldbinit
@@ -0,0 +1,3 @@
+# To autoload set `settings set target.load-cwd-lldbinit true` in ~/.lldbinit
+command script import ./llvm/utils/lldbDataFormatters.py
+command script import ./clang/utils/ClangDataFormat.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141219.487152.patch
Type: text/x-patch
Size: 322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230108/1c57bd7a/attachment-0001.bin>
More information about the lldb-commits
mailing list