summaryrefslogtreecommitdiff
path: root/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-08 06:50:02 +0000
committerChris Lattner <sabre@nondot.org>2002-11-08 06:50:02 +0000
commita4e7c4ea68ada98149d732ed62241e5a6099c3d5 (patch)
tree9aec302706c5e02457d59100590956d184a917d6 /docs/ProgrammersManual.html
parentb16fb0db91f620618f00265d95a1cc255bfa234a (diff)
downloadllvm-a4e7c4ea68ada98149d732ed62241e5a6099c3d5.tar.gz
llvm-a4e7c4ea68ada98149d732ed62241e5a6099c3d5.tar.bz2
llvm-a4e7c4ea68ada98149d732ed62241e5a6099c3d5.tar.xz
Add some notes about DEBUG flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r--docs/ProgrammersManual.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index d07fc4cd3e..26d4550087 100644
--- a/docs/ProgrammersManual.html
+++ b/docs/ProgrammersManual.html
@@ -349,8 +349,15 @@ Then you can run your pass like this:<p>
Using the <tt>DEBUG()</tt> macro instead of a home brewed solution allows you to
now have to create "yet another" command line option for the debug output for
-your pass. Note that <tt>DEBUG()</tt> macros are disabled for optimized
-builds, so they do not cause a performance impact at all.<p>
+your pass. Note that <tt>DEBUG()</tt> macros are disabled for optimized builds,
+so they do not cause a performance impact at all (for the same reason, they
+should also not contain side-effects!).<p>
+
+One additional nice thing about the <tt>DEBUG()</tt> macro is that you can
+enable or disable it directly in gdb. Just use "<tt>set DebugFlag=0</tt>" or
+"<tt>set DebugFlag=1</tt>" from the gdb if the program is running. If the
+program hasn't been started yet, you can always just run it with
+<tt>-debug</tt>.<p>
<!-- ======================================================================= -->
@@ -1769,6 +1776,6 @@ pointer to the parent Function.
<a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
<!-- hhmts start -->
-Last modified: Sun Oct 20 21:37:06 CDT 2002
+Last modified: Fri Nov 8 00:48:37 CST 2002
<!-- hhmts end -->
</font></body></html>