[Lldb-commits] [lldb] r139529 - /lldb/trunk/www/lldb-gdb.html

Greg Clayton gclayton at apple.com
Mon Sep 12 12:56:07 PDT 2011


Author: gclayton
Date: Mon Sep 12 14:56:07 2011
New Revision: 139529

URL: http://llvm.org/viewvc/llvm-project?rev=139529&view=rev
Log:
Added GDB/LLDB commands for the "target stop-hook add" command.


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=139529&r1=139528&r2=139529&view=diff
==============================================================================
--- lldb/trunk/www/lldb-gdb.html (original)
+++ lldb/trunk/www/lldb-gdb.html Mon Sep 12 14:56:07 2011
@@ -190,6 +190,43 @@
                         </td>
                     </tr>
 
+                    <tr><td class="header" colspan="2">Display a the variable "argc" and "argv" everytime you stop.</td></tr>
+                    <tr>
+                        <td class="content">
+                            <b>(lldb)</b> target stop-hook add --one-liner "frame variable argc argv"<br>
+                        </td>
+                        <td class="content">
+                            <b>(gdb)</b> display argc<br>
+                            <b>(gdb)</b> display argv<br>
+                        </td>
+                    </tr>
+
+                    <tr><td class="header" colspan="2">Display a the variable "argc" and "argv" only when you stop in the function named <b>main</b>.</td></tr>
+                    <tr>
+                        <td class="content" colspan="2">
+                            <b>(lldb)</b> target stop-hook add --name main --one-liner "frame variable argc argv"<br>
+                        </td>
+                    </tr>
+
+                    <tr><td class="header" colspan="2">Display the variable "*this" only when you stop in c class named <b>MyClass</b>.</td></tr>
+                    <tr>
+                        <td class="content" colspan="2">
+                            <b>(lldb)</b> target stop-hook add --classname MyClass --one-liner "frame variable *this"<br>
+                        </td>
+                    </tr>
+
+                    <tr><td class="header" colspan="2">Backtrace and disassemble every time you stop.</td></tr>
+                    <tr>
+                        <td class="content" colspan="2">
+                            <b>(lldb)</b> target stop-hook add"<br>
+                            Enter your stop hook command(s).  Type 'DONE' to end.<br>
+                            > bt<br>
+                            > disassemble --pc<br>
+                            > DONE<br>
+                            Stop hook #1 added.<br>
+                        </td>
+                    </tr>
+
                     </table>
                     <p>
                 </div>





More information about the lldb-commits mailing list