[llvm] [llvm][docs] Add LLDB data formatters to DebuggingLLVM.rst (PR #157528)
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 11:28:15 PDT 2025
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/157528
Add LLDB data formatters to the document about debugging LLVM.
>From 43feece4b8fc598d255873b832d3f5a9dbd19807 Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Mon, 8 Sep 2025 11:26:20 -0700
Subject: [PATCH] [llvm][docs] Add LLDB data formatters to DebuggingLLVM.rst
Add LLDB data formatters to the document about debugging LLVM.
---
llvm/docs/DebuggingLLVM.rst | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/llvm/docs/DebuggingLLVM.rst b/llvm/docs/DebuggingLLVM.rst
index 51d63b5937f56..90ae43c5cd6b9 100644
--- a/llvm/docs/DebuggingLLVM.rst
+++ b/llvm/docs/DebuggingLLVM.rst
@@ -96,6 +96,16 @@ and each instruction printed by LLVM is suffixed with the file and line
number of the instruction according to the debug information. Note that
this requires debug information to be enabled (e.g. pass ``-g`` to Clang).
+LLDB Data Formatters
+===================
+
+A handful of `LLDB data formatters
+<https://lldb.llvm.org/resources/dataformatters.html>`__ are
+provided for some of the core LLVM libraries. To use them, execute the
+following (or add it to your ``~/.lldbinit``)::
+
+ command script import /path/to/lldbDataFormatters.py
+
GDB pretty printers
===================
More information about the llvm-commits
mailing list