[Lldb-commits] [lldb] r166697 - /lldb/trunk/www/lldb-gdb.html
Jim Ingham
jingham at apple.com
Thu Oct 25 10:35:53 PDT 2012
Author: jingham
Date: Thu Oct 25 12:35:53 2012
New Revision: 166697
URL: http://llvm.org/viewvc/llvm-project?rev=166697&view=rev
Log:
Add section on creating convenience variables.
Modified:
lldb/trunk/www/lldb-gdb.html
Modified: lldb/trunk/www/lldb-gdb.html
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/lldb-gdb.html?rev=166697&r1=166696&r2=166697&view=diff
==============================================================================
--- lldb/trunk/www/lldb-gdb.html (original)
+++ lldb/trunk/www/lldb-gdb.html Thu Oct 25 12:35:53 2012
@@ -585,6 +585,25 @@
</td>
</tr>
+ <tr><td class="header" colspan="2">Creating and assigning a value to a convenience variable.</td></tr>
+ <tr>
+ <td class="content">
+ <b>(gdb)</b> set $foo = 5<br>
+ <b>(gdb)</b> set variable $foo = 5<br>
+ or using the print command <br>
+ <b>(gdb)</b> print $foo = 5<br>
+ or using the call command <br>
+ <b>(gdb)</b> call $foo = 5<br>
+ and if you want to specify the type of the variable:
+ <b>(gdb)</b> set $foo = (unsigned int) 5<br>
+
+ </td>
+ <td class="content">
+ In lldb you evaluate a variable declaration expression as you would write it in C:<br>
+ <b>(lldb)</b> expr unsigned int $foo = 5<br>
+ </td>
+ </tr>
+
<tr><td class="header" colspan="2">Printing the ObjC "description" of an object.</td></tr>
<tr>
<td class="content">
More information about the lldb-commits
mailing list