forked from OSchip/llvm-project
Remove -w write flag to watch set var from tutorial.html.
Fix one gdb example that had an "(lldb)" prompt in the lldb/gdb page. llvm-svn: 166297
This commit is contained in:
parent
82d3ab9225
commit
3929249281
|
@ -946,7 +946,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td class="header" colspan="2">Lookup information for a raw address in the executable or any shared libraries.</td></tr>
|
||||
<tr><td class="header" colspan="2">Look up information for a raw address in the executable or any shared libraries.</td></tr>
|
||||
<tr>
|
||||
<td class="content">
|
||||
<b>(gdb)</b> info symbol 0x1ec4<br>
|
||||
|
@ -957,7 +957,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td class="header" colspan="2">Lookup functions matching a regular expression in a binary.</td></tr>
|
||||
<tr><td class="header" colspan="2">Look up functions matching a regular expression in a binary.</td></tr>
|
||||
<tr>
|
||||
<td class="content">
|
||||
<b>(gdb)</b> info function <FUNC_REGEX><br>
|
||||
|
@ -971,7 +971,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td class="header" colspan="2">Lookup information for an address in <b>a.out</a> only.</td></tr>
|
||||
<tr><td class="header" colspan="2">Look up information for an address in <b>a.out</a> only.</td></tr>
|
||||
<tr>
|
||||
<td class="content">
|
||||
</td>
|
||||
|
@ -981,10 +981,10 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td class="header" colspan="2">Lookup information for for a type <code>Point</code> by name.</td></tr>
|
||||
<tr><td class="header" colspan="2">Look up information for for a type <code>Point</code> by name.</td></tr>
|
||||
<tr>
|
||||
<td class="content">
|
||||
<b>(lldb)</b> ptype Point<br>
|
||||
<b>(gdb)</b> ptype Point<br>
|
||||
</td>
|
||||
<td class="content">
|
||||
<b>(lldb)</b> image lookup --type Point<br>
|
||||
|
|
|
@ -347,7 +347,7 @@ Current breakpoints:
|
|||
to see all the commands for watchpoint manipulations. For instance, we might do the following to watch
|
||||
a variable called 'global' for write operation, but only stop if the condition '(global==5)' is true:</p>
|
||||
|
||||
<pre><tt>(lldb) watch set var -w write global
|
||||
<pre><tt>(lldb) watch set var global
|
||||
Watchpoint created: Watchpoint 1: addr = 0x100001018 size = 4 state = enabled type = w
|
||||
declare @ '/Volumes/data/lldb/svn/ToT/test/functionalities/watchpoint/watchpoint_commands/condition/main.cpp:12'
|
||||
(lldb) watch modify -c '(global==5)'
|
||||
|
|
Loading…
Reference in New Issue