Skip to content
Snippets Groups Projects
Commit 736d32ba authored by hjk's avatar hjk
Browse files

Debugger: Add autoderef to LLDB


Change-Id: Ie0f5c10f1a8eb7af531a850051c773ab3993d52e
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 9db98dc5
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,7 @@ class Children:
else:
#self.childType = stripClassTag(str(childType))
self.childType = childType
self.d.put('childtype="%s",' % self.childType)
self.d.put('childtype="%s",' % self.childType.GetName())
if childNumChild is None:
pass
#if isSimpleType(childType):
......@@ -501,6 +501,7 @@ class Dumper:
self.expandedINames = {}
self.passExceptions = True
self.ns = ""
self.autoDerefPointers = True
self.currentIName = None
self.currentValuePriority = -100
......@@ -842,6 +843,11 @@ class Dumper:
self.putBetterType("%s &" % value.GetTypeName())
return
# Pointers
if value.GetType().IsPointerType() and self.autoDerefPointers:
self.putItem(value.Dereference())
return
stripped = self.stripNamespaceFromType(typeName).replace("::", "__")
#warn("VALUE: %s" % value)
if stripped in qqDumpers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment