lldb should be better-aware of the return types of methods/functions

Originator:numist
Number:rdar://12616412 Date Originated:01-Nov-2012 10:28 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode Version 4.5.1 (4G1004)/LLDB-167.4
Classification:UI/Usability Reproducible:Always
 
Summary:
LLDB already is pretty powerful, but it could be further enhanced if it tracked down headers at runtime for symbols that the currently-executing code has in scope, including their types. This information is already available statically in the code editor.

Steps to Reproduce:
p [set containsObject:object]

Expected Results:
(BOOL) $5 = YES

Actual Results:
(lldb) p [set containsObject:object]
error: no known method '-containsObject:'; cast the message send to the method's return type
error: 1 errors parsing expression

Workaround (for integer types):
(lldb) po [set containsObject:object]
(id) $4 = 0x00000001 [no Objective-C description available]

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!