[Lldb-commits] [lldb] [lldb][Docs] Add page about debugging lldb itself (PR #65332)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 5 10:41:29 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
----------------
bulbazord wrote:
I would also recommend explicitly turning on `LLVM_ENABLE_ASSERTIONS=On` as well -- Some bugs may be easier to diagnose if LLDB asserts instead of returning an error somewhere.
https://github.com/llvm/llvm-project/pull/65332
More information about the lldb-commits
mailing list