[lldb-dev] [Bug 22315] Breakpoint does not hit when evaluating a function call expression

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 23 13:23:13 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22315

Jim Ingham <jingham at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jingham at apple.com
         Resolution|---                         |INVALID

--- Comment #1 from Jim Ingham <jingham at apple.com> ---
This is behaving as designed.  By default lldb's expression parser ignores
breakpoint hits when running the expression.  We did an informal survey and
most folks use function calling for the function call results, and didn't want
to stop just because that code happened to hit some breakpoint they had set.

If you want to stop at breakpoints in expressions, either use:

(lldb) expr -i 0 -- <EXPRESSION>

or if you always want to stop at breakpoints in expressions, do:

(lldb) settings set target.process.ignore-breakpoints-in-expressions 0

or change the "p" alias to be "expr -i 0 --"

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150123/78a54005/attachment.html>


More information about the lldb-dev mailing list