Xcode-beta (7B85): lldb can’t print or execute anything in protocol extensions
| Originator: | rix.rob | ||
| Number: | rdar://23158941 | Date Originated: | 18-Oct-2015 01:34 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7B85) |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary:
When stopped at a frame in a protocol extension, lldb apparently can’t print or execute anything.
Steps to Reproduce:
1. Unzip the attached project.
2. Open it in Xcode.
3. Set a breakpoint in TermType+Construction.swift, on line 100 (if it’s not already set there).
4. Run the unit tests for the Manifold target.
5. When the debugger stops, attempt to print anything, whether a local binding, a parameter, `self`, or an expression constructed inline, e.g.:
(lldb) po n
(lldb) po type
(lldb) po self
(lldb) po "x"
Expected Results:
I expected the expressions to be evaluated and the results to be printed.
Actual Results:
It outputs this every time:
error: <EXPR>:1:1: error: non-nominal type '$__lldb_context' (aka 'Self') cannot be extended
extension $__lldb_context {
^ ~~~~~~~~~~~~~~~
<EXPR>:15:5: error: type 'Term' has no member '$__lldb_wrapped_expr_2'
$__lldb_injected_self.$__lldb_wrapped_expr_2(
^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
Regression:
This also happens in Xcode 7; it’s not a regression as far as I can see.
Notes:
N/A
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Same error with Xcode 7.2.1 (7C1002)
The error is always present with the last official release of Xcode