Bug ID 22315
Summary Breakpoint does not hit when evaluating a function call expression
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter sivachandra@gmail.com
Classification Unclassified
Jim Ingham changed bug 22315
What | Removed | Added |
- | - | - |
Status | NEW | RESOLVED |
CC | | jingham@apple.com |
Resolution | — | INVALID |
Comment # 1 on bug 22315 from Jim Ingham
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 --"