Commit e33da6a6 authored by hjk's avatar hjk
Browse files

Debugger: Remove GDB specific access test in generic pointer code



The field checked for does not even exists in lldb.SBValue.

Change-Id: I062ccf62da2e2ea3f011d0b841cba0e87f7c6fa9
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent c24640ba
......@@ -1057,10 +1057,18 @@ class DumperBase:
innerType = value.type.target().unqualified()
innerTypeName = str(innerType)
goodPointer = False
try:
target = value.dereference()
target.is_optimized_out # Access test.
str(target) # Dummy access.
if self.isLldb and target.GetError().Fail():
pass
else:
goodPointer = True
except:
pass
if not goodPointer:
# Failure to dereference a pointer should at least
# show the value of a pointer.
self.putValue(self.cleanAddress(value))
......@@ -1128,7 +1136,6 @@ class DumperBase:
self.currentChildType = self.stripClassTag(innerTypeName)
self.putItem(value.dereference())
self.currentChildType = savedCurrentChildType
#self.putPointerValue(value)
self.putOriginalAddress(value)
return
......
Supports Markdown
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