summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2015-12-19 19:41:48 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2015-12-19 19:41:48 +0000
commit0334a047df7a1b9592221ac345e6c0663e56891d (patch)
tree4d4b9834badde499996c7dc01e9350c56e6d0b1f /clang/docs
parentf48a1f54dd7ca643d92044ad13f33568e725ec4a (diff)
downloadbcm5719-llvm-0334a047df7a1b9592221ac345e6c0663e56891d.tar.gz
bcm5719-llvm-0334a047df7a1b9592221ac345e6c0663e56891d.zip
Driver part of debugger tuning.
Adds driver options named -glldb and -gsce to mean -g plus tuning for lldb and SCE debuggers respectively; the existing -ggdb option does the same for gdb. Existing options -ggdb0, -ggdb1 etc. unpack into -ggdb -g<N>. (There will not be -glldb<N> or -gsce<N> options.) The tuning gets a target-specific default in the driver, and is passed into cc1 with the new -debugger-tuning option. As fallout, fixes where '-gsplit-dwarf -g0' would ignore the -g0 part on Linux. Differential Revision: http://reviews.llvm.org/D15651 llvm-svn: 256104
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/UsersManual.rst20
1 files changed, 19 insertions, 1 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index 2e259d205e8..5fe1e371df6 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -1514,8 +1514,11 @@ In these cases, you can use the flag ``-fno-profile-instr-generate`` (or
Note that these flags should appear after the corresponding profile
flags to have an effect.
+Controlling Debug Information
+-----------------------------
+
Controlling Size of Debug Information
--------------------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Debug info kind generated by Clang can be set by one of the flags listed
below. If multiple flags are present, the last one is used.
@@ -1559,6 +1562,21 @@ below. If multiple flags are present, the last one is used.
Generate complete debug info.
+Controlling Debugger "Tuning"
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+While Clang generally emits standard DWARF debug info (http://dwarfstd.org),
+different debuggers may know how to take advantage of different specific DWARF
+features. You can "tune" the debug info for one of several different debuggers.
+
+.. option:: -ggdb, -glldb, -gsce
+
+ Tune the debug info for the ``gdb``, ``lldb``, or Sony Computer Entertainment
+ debugger, respectively. Each of these options implies **-g**. (Therefore, if
+ you want both **-gline-tables-only** and debugger tuning, the tuning option
+ must come first.)
+
+
Comment Parsing Options
-----------------------
OpenPOWER on IntegriCloud