diff options
| author | David Blaikie <dblaikie@gmail.com> | 2016-12-20 17:33:58 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2016-12-20 17:33:58 +0000 |
| commit | 063b272bbbf4cd6041f717677f58cca18afd284e (patch) | |
| tree | 7610a7e31fb59a80724fe28e00f7df4cf3793886 | |
| parent | bb1388862bc3259894e9fce694ba693440618bf2 (diff) | |
| download | bcm5719-llvm-063b272bbbf4cd6041f717677f58cca18afd284e.tar.gz bcm5719-llvm-063b272bbbf4cd6041f717677f58cca18afd284e.zip | |
Add some brief documentation about GDB pretty printers
llvm-svn: 290186
| -rw-r--r-- | llvm/docs/ProgrammersManual.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst index 7e11983bff6..6f136ce5950 100644 --- a/llvm/docs/ProgrammersManual.rst +++ b/llvm/docs/ProgrammersManual.rst @@ -2194,6 +2194,22 @@ reverse) is O(1) worst case. Testing and setting bits within 128 bits (depends 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 |

