コード例 #1
0
ファイル: AppleObjCRuntime.cpp プロジェクト: fbsd/old_lldb
bool
AppleObjCRuntime::GetObjectDescription (Stream &str, ValueObject &object)
{
    bool is_signed;
    // ObjC objects can only be pointers, but we extend this to integer types because an expression might just
    // result in an address, and we should try that to see if the address is an ObjC object.
    
    if (!(object.IsPointerType() || object.IsIntegerType(is_signed)))
        return NULL;
    
    // Make the argument list: we pass one arg, the address of our pointer, to the print function.
    Value val;
    
    if (!object.ResolveValue(val.GetScalar()))
        return NULL;
                        
    return GetObjectDescription(str, val, object.GetExecutionContextScope());
                   
}