diff options
-rwxr-xr-x | lldb/www/lldb-gdb.html | 12 | ||||
-rwxr-xr-x | lldb/www/tutorial.html | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/lldb/www/lldb-gdb.html b/lldb/www/lldb-gdb.html index df96beebb26..87c82822561 100755 --- a/lldb/www/lldb-gdb.html +++ b/lldb/www/lldb-gdb.html @@ -342,6 +342,18 @@ </td> </tr> + <tr><td class="header" colspan="2">Ensure that breakpoints by file and line work for #included .c/.cpp/.m files.</td></tr> + + <tr> + <td class="content"> + <b>(gdb)</b> b foo.c:12<br> + </td> + <td class="content"> + <b>(lldb)</b> settings set target.inline-breakpoint-strategy always<br> + <b>(lldb)</b> br s -f foo.c -l 12<br> + </td> + </tr> + <tr><td class="header" colspan="2">Set a breakpoint by regular expression on source file contents.</td></tr> <tr> diff --git a/lldb/www/tutorial.html b/lldb/www/tutorial.html index 243113e3fb2..3e83fb8ad9b 100755 --- a/lldb/www/tutorial.html +++ b/lldb/www/tutorial.html @@ -93,6 +93,13 @@ <br>(lldb) breakpoint set -n foo
</code>
+ <p>You can use the --name option multiple times to make a breakpoint on a set of functions as well. This is convenient
+ since it allows you to set commmon conditions or commands without having to specify them multiple times:</p>
+
+ <code>
+ (lldb) breakpoint set --name foo --name bar
+ </code>
+
<p>Setting breakpoints by name is even more specialized in LLDB as you can specify
that you want to set a breakpoint at a function by method name. To set a breakpoint
on all C++ methods named <code>foo</code> you can enter either of:</p>
@@ -117,6 +124,8 @@ <br>(lldb) breakpoint set -s foo.dylib -n foo
</code>
+ <p>The <code>--shlib</code> option can also be repeated to specify several shared libraries.</p>
+
<p>Suggestions on more interesting primitives of this sort are also very welcome.</p>
<p>Just like gdb, the lldb command interpreter does a shortest unique
|