[llvm] r290186 - Add some brief documentation about GDB pretty printers

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 09:33:58 PST 2016


Author: dblaikie
Date: Tue Dec 20 11:33:58 2016
New Revision: 290186

URL: http://llvm.org/viewvc/llvm-project?rev=290186&view=rev
Log:
Add some brief documentation about GDB pretty printers

Modified:
    llvm/trunk/docs/ProgrammersManual.rst

Modified: llvm/trunk/docs/ProgrammersManual.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ProgrammersManual.rst?rev=290186&r1=290185&r2=290186&view=diff
==============================================================================
--- llvm/trunk/docs/ProgrammersManual.rst (original)
+++ llvm/trunk/docs/ProgrammersManual.rst Tue Dec 20 11:33:58 2016
@@ -2194,6 +2194,22 @@ reverse) is O(1) worst case.  Testing an
 on size) of the current bit is also O(1).  As a general statement,
 testing/setting bits in a SparseBitVector is O(distance away from last set bit).
 
+.. _debugging:
+
+Debugging
+=========
+
+A handful of `GDB pretty printers
+<https://sourceware.org/gdb/onlinedocs/gdb/Pretty-Printing.html>`__ are
+provided for some of the core LLVM libraries. To use them, execute the
+following (or add it to your ``~/.gdbinit``)::
+
+  source /path/to/llvm/src/utils/gdb-scripts/prettyprinters.py
+
+It also might be handy to enable the `print pretty
+<http://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_57.html`__ option to
+avoid data structures being printed as a big block of text.
+
 .. _common:
 
 Helpful Hints for Common Operations




More information about the llvm-commits mailing list