[Lldb-commits] [lldb] [lldb][Docs] Add page about debugging lldb itself (PR #65332)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 5 08:50:20 PDT 2023


================
@@ -0,0 +1,254 @@
+Debugging LLDB
+==============
+
+This page details various ways to debug LLDB itself and other LLDB tools. If
+you want to know how to use LLDB in general, please refer to
+:doc:`/use/tutorial`.
+
+As LLDB is generally split into 2 tools, ``lldb`` and ``lldb-server``
+(``debugserver`` on Mac OS), the techniques shown here will not always apply to
+both. With some knowledge of them all, you can mix and match as needed.
+
+In this document we refer to the initial ``lldb`` as the debugger and the
+program being debugged as the debugee.
+
+Building For Debugging
+----------------------
+
+To build LLDB with debugging information add the following to your CMake
+configuration:
+
+::
+
+  -DCMAKE_BUILD_TYPE=Debug \
+  -DLLDB_EXPORT_ALL_SYMBOLS=1
+
+Note that the ``lldb`` you will use to do the debugging does not itself need to
+have debug information.
+
+Then build as you normally would.
----------------
JDevlieghere wrote:

Maybe add a backlink here to the building docs.

https://github.com/llvm/llvm-project/pull/65332


More information about the lldb-commits mailing list