Commit fc231482 authored by hjk's avatar hjk
Browse files

Debugger: Make access to non-existing member throw with LLDB



This mimics GDB behavior.

Change-Id: I929a87ff227e4af7cfbfbbcd2a8e72c9999e9338
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent dcf3ba50
......@@ -125,7 +125,10 @@ def impl_SBValue__getitem__(value, index):
address = address & 0xFFFFFFFFFFFFFFFF # Force unsigned
return value.CreateValueFromAddress(None, address, innertype)
return value.GetChildAtIndex(index)
return value.GetChildMemberWithName(index)
item = value.GetChildMemberWithName(index)
if item.IsValid():
return item
raise RuntimeError("SBValue.__getitem__: No such member '%s'" % index)
def impl_SBValue__deref(value):
result = value.Dereference()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment