summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-07 01:06:37 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-07 01:06:37 +0000
commitc12ec2f6007218011bac7ebff1d5e77760f11aae (patch)
treeae925a3024d9706cb3b04ad0220dbb1f4a24896c
parent171969c8c2004547650f02719cbb550374159841 (diff)
downloadbcm5719-llvm-c12ec2f6007218011bac7ebff1d5e77760f11aae.tar.gz
bcm5719-llvm-c12ec2f6007218011bac7ebff1d5e77760f11aae.zip
Add a simple scenario of emacs and lldb interaction.
llvm-svn: 141347
-rwxr-xr-xlldb/www/emacs-integration.html18
1 files changed, 14 insertions, 4 deletions
diff --git a/lldb/www/emacs-integration.html b/lldb/www/emacs-integration.html
index 98b981a309a..da0f1299ea7 100755
--- a/lldb/www/emacs-integration.html
+++ b/lldb/www/emacs-integration.html
@@ -20,25 +20,35 @@
<h1 class ="postheader">Status</h1>
<div class="postcontent">
- <p>LLDB supports Emacs integration through customizing the GUD (Grand Unified Debugger) library.
+ <p>LLDB supports emacs integration through customizing the GUD (Grand Unified Debugger) library.
Take a look at <a href="http://www.gnu.org/software/libtool/manual/emacs/Debuggers.html#Debuggers">Grand Unified Debugger</a>
and the <a href="http://www.emacswiki.org/emacs/GrandUnifiedDebugger">Emacs Wiki Page</a> for more details.</p>
<p>The lldb-enhanced gud.el is based on the emacs 22.3.1 version from Aquamacs 1.8c distribution.
To use it, within emacs, load the gud.el file located under the utils/emacs directory.
- Type 'M-x lldb' to invoke lldb. The first time you do this, emacs will ask you to supply the command line to invoke lldb.
+ Type <font color=blue>M-x lldb</font> to invoke lldb. The first time you do this, emacs will ask you to supply the command line to invoke lldb.
If lldb is not in your PATH, be sure to specify the full path to the lldb executable.</p>
- <p>This is a screen shot of the gud (with lldb) at work on Aquamacs distribution 2.1 by loading gud.el and 'M-x lldb'
+ <p>This is a screen shot of the gud (with lldb) at work on Aquamacs distribution 2.1 by loading gud.el and then <font color=blue>M-x lldb</font>
on the a.out file in the test/functionalities/conditional_break directory:</p>
<p>
<img src="lldb-gud-window.png">
</p>
+ <p>For a very simple interaction using 'M-x lldb', you can supply your executable to the "Run lldb (like this)" prompt.
+ For example:<br><br>
+
+ <font color=blue>Run lldb (like this)</font>: /Volumes/data/lldb/svn/trunk/build/Debug/lldb a.out
+ </p>
+
+ <p>Visit your source code buffer, go to the line where you want to set the breakpoint on, type <font color=blue>C-x &lt;SPC&gt;</font>
+ to set a breakpoint on the source line that point is on, and then run the inferior program. The inferior should then stop and emacs
+ shows the buffer and marks the line where it breaks on.</p>
+
<p>We welcome any help fleshing out missing pieces and improving the elisp code.</p>
- <p>Last Update: Oct 05, 2011.</p>
+ <p>Last Update: Oct 06, 2011.</p>
</div>
<div class="postfooter"></div>
OpenPOWER on IntegriCloud