Method args not visible at breakpoint

Originator:bjhomer
Number:rdar://13431755 Date Originated:15-Mar-2013
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 4.6.1
Classification: Reproducible:Always
 
Summary:
In LLDB, if a method consists only of a single return statement, and you put a breakpoint on that return statement, then when you're stopped at that breakpoint all method arguments appear to be nil.

Steps to Reproduce:
- (BOOL)testFoo:(NSString *)foo {
  return YES; // Put a breakpoint here, run `po foo`. Note that it's nil, even when you passed something else.
}

Expected Results:
You can see the value of foo that was passed to the method

Actual Results:
You can't. It's nil. If you put a breakpoint on the closing brace of the method, then it works. But not on the return statement.

Regression:
Not sure.

Notes:
Sample project attached.

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!