Skip to content

Commit 073cf98

Browse files
authored
[llvm][docs] Add LLDB data formatters to DebuggingLLVM.rst (#157528)
Add LLDB data formatters to the document about debugging LLVM.
1 parent 2e6268a commit 073cf98

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

llvm/docs/DebuggingLLVM.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ and each instruction printed by LLVM is suffixed with the file and line
9696
number of the instruction according to the debug information. Note that
9797
this requires debug information to be enabled (e.g. pass ``-g`` to Clang).
9898

99+
LLDB Data Formatters
100+
====================
101+
102+
A handful of `LLDB data formatters
103+
<https://lldb.llvm.org/resources/dataformatters.html>`__ are
104+
provided for some of the core LLVM libraries. To use them, execute the
105+
following (or add it to your ``~/.lldbinit``)::
106+
107+
command script import /path/to/llvm/utils/lldbDataFormatters.py
108+
99109
GDB pretty printers
100110
===================
101111

@@ -104,7 +114,7 @@ A handful of `GDB pretty printers
104114
provided for some of the core LLVM libraries. To use them, execute the
105115
following (or add it to your ``~/.gdbinit``)::
106116

107-
source /path/to/llvm/src/utils/gdb-scripts/prettyprinters.py
117+
source /path/to/llvm/utils/gdb-scripts/prettyprinters.py
108118

109119
It also might be handy to enable the `print pretty
110120
<https://sourceware.org/gdb/current/onlinedocs/gdb.html/Print-Settings.html>`__

0 commit comments

Comments
 (0)