forked from qt-creator/qt-creator
Debugger: Support C structs in dumpers
The lookup for qdump function was done by "struct Foo" instead of just "Foo". Change-Id: I325d00910a0c13c5e67692737033531e18392247 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
3b415f5ebd
commit
9a7535d9e9
@@ -1187,6 +1187,10 @@ class DumperBase():
|
||||
nsStrippedType = self.stripNamespaceFromType(typeName)\
|
||||
.replace('::', '__')
|
||||
|
||||
# Strip leading 'struct' for C structs
|
||||
if nsStrippedType.startswith('struct '):
|
||||
nsStrippedType = nsStrippedType[7:]
|
||||
|
||||
#DumperBase.warn('STRIPPED: %s' % nsStrippedType)
|
||||
# The following block is only needed for D.
|
||||
if nsStrippedType.startswith('_A'):
|
||||
|
Reference in New Issue
Block a user