summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-05-04 03:43:18 +0000
committerJim Ingham <jingham@apple.com>2011-05-04 03:43:18 +0000
commit2837b766f594f6aa0ec17c96bc8d257e2569d65e (patch)
tree3333316451bc06a2e495379451073b94abe38f9e /lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
parent3d57441e56104b2bd93d85b4d19af1f5f40dbf82 (diff)
downloadbcm5719-llvm-2837b766f594f6aa0ec17c96bc8d257e2569d65e.tar.gz
bcm5719-llvm-2837b766f594f6aa0ec17c96bc8d257e2569d65e.zip
Change "frame var" over to using OptionGroups (and thus the OptionGroupVariableObjectDisplay).
Change the boolean "use_dynamic" over to a tri-state, no-dynamic, dynamic-w/o running target, and dynamic with running target. llvm-svn: 130832
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp')
-rw-r--r--lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
index 62eac38e6e2..0d9d0bcf6a3 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
@@ -194,11 +194,18 @@ AppleObjCRuntime::GetPrintForDebuggerAddr()
bool
AppleObjCRuntime::CouldHaveDynamicValue (ValueObject &in_value)
{
- return in_value.IsPointerType();
+ lldb::LanguageType known_type = in_value.GetObjectRuntimeLanguage();
+ if (known_type == lldb::eLanguageTypeObjC)
+ return true;
+ else
+ return in_value.IsPointerType();
}
bool
-AppleObjCRuntime::GetDynamicTypeAndAddress (ValueObject &in_value, TypeAndOrName &class_type_or_name, Address &address)
+AppleObjCRuntime::GetDynamicTypeAndAddress (ValueObject &in_value,
+ lldb::DynamicValueType use_dynamic,
+ TypeAndOrName &class_type_or_name,
+ Address &address)
{
return false;
}
OpenPOWER on IntegriCloud