Added register write examples and also how to modify the pc. For this we show and...
authorGreg Clayton <gclayton@apple.com>
Wed, 17 Oct 2012 20:58:52 +0000 (20:58 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 17 Oct 2012 20:58:52 +0000 (20:58 +0000)
llvm-svn: 166127

lldb/www/lldb-gdb.html

index 9050296..214b6e1 100755 (executable)
                         </td>
                     </tr>
 
+                    <tr><td class="header" colspan="2">Write a new decimal value '123' to the current thread register 'rax'.</td></tr>
+                    <tr>
+                        <td class="content">
+                            <b>(gdb)</b> p $rax = 123<br>
+                        </td>
+                        <td class="content">
+                            <b>(lldb)</b> register write rax 123<br>
+                        </td>
+                    </tr>
+
+                    <tr><td class="header" colspan="2">Skip 8 bytes ahead of the current program counter (instruction pointer). Note that we use backticks to evaluate an expression and insert the scalar result in LLDB.</td></tr>
+                    <tr>
+                        <td class="content">
+                            <b>(gdb)</b> jump *$pc+8<br>
+                        </td>
+                        <td class="content">
+                            <b>(lldb)</b> register write pc `$pc+8`<br>
+                        </td>
+                    </tr>
+
                     <tr><td class="header" colspan="2">Show the general purpose registers for the current thread formatted as <b>signed decimal</b>. LLDB tries to use
                          the same format characters as <b>printf(3)</b> when possible.  Type "help format" to see the full list of format specifiers.</td></tr>
                     <tr>