Clang docs update: list command-line flags that control the size of generated debug information. Reviewed by chandlerc@ and echristo@.

llvm-svn: 157681
This commit is contained in:
Alexey Samsonov 2012-05-30 06:55:10 +00:00
parent 9ee12508ca
commit 731eb477c1
1 changed files with 24 additions and 0 deletions

View File

@ -49,6 +49,7 @@ td {
</li> </li>
<li><a href="#precompiledheaders">Precompiled Headers</a></li> <li><a href="#precompiledheaders">Precompiled Headers</a></li>
<li><a href="#codegen">Controlling Code Generation</a></li> <li><a href="#codegen">Controlling Code Generation</a></li>
<li><a href="#debuginfosize">Controlling Size of Debug Information</a></li>
</ul> </ul>
</li> </li>
<li><a href="#c">C Language Features</a> <li><a href="#c">C Language Features</a>
@ -857,6 +858,29 @@ useful for environments (e.g. deeply embedded) where a trap cannot be properly
handled, or when some custom behavior is desired.</dd> handled, or when some custom behavior is desired.</dd>
</dl> </dl>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
<h3 id="debuginfosize">Controlling Size of Debug Information</h3>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
<p>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.</p>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<dl>
<dt id="opt_g0"><b>-g0</b>: Don't generate any debug info (default).
<dt id="opt_gline-tables-only"><b>-gline-tables-only</b>:
Generate line number tables only.
<dd>
This kind of debug info allows to obtain stack traces with function
names, file names and line numbers (by such tools as
gdb or addr2line). It doesn't contain any other data (e.g.
description of local variables or function parameters).
</dd>
<dt id="opt_g"><b>-g</b>: Generate complete debug info.
</dl>
<!-- ======================================================================= --> <!-- ======================================================================= -->
<h2 id="c">C Language Features</h2> <h2 id="c">C Language Features</h2>
<!-- ======================================================================= --> <!-- ======================================================================= -->