Commit dc2096e8 authored by hjk's avatar hjk

Debugger: Move templateArgument implementation to Dumper class

This sets the scene for LLDB which needs direct access.
The global functions in stay for now, to keep compatibility.

Change-Id: Ia81f682ac2066acde3239f2d1e27f5e442361b11
Reviewed-by: default avatarhjk <>
parent 9a1a0065
......@@ -1507,6 +1507,13 @@ class Dumper:
#print('data=[' + locals + sep + watchers + ']\n')
def templateArgument(self, typeobj, position):
return templateArgument(typeobj, position)
def numericTemplateArgument(self, typeobj, position):
return numericTemplateArgument(typeobj, position)
def lookupType(self, typeName):
return lookupType(typeName)
......@@ -88,9 +88,6 @@ qqEditable = {}
# This keeps canonical forms of the typenames, without array indices etc.
qqStripForFormat = {}
def templateArgument(typeobj, index):
return typeobj.GetTemplateArgumentType(index)
def directBaseClass(typeobj, index = 0):
return typeobj.GetDirectBaseClassAtIndex(index)
......@@ -520,6 +517,9 @@ class Dumper:
self.charPtrType_ = None
self.voidType_ = None
def templateArgument(self, typeobj, index):
return typeobj.GetTemplateArgumentType(index)
def intType(self):
if self.intType_ is None:
self.intType_ ='int')
This diff is collapsed.
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