forked from qt-creator/qt-creator
Debugger: Fix unnamed typedef resolution
typedef enum { Value } Unnamed;
struct Foo { Unnamed u; };
int main()
{
Foo foo;
return 0; // Expand foo -> not accessible
}
Change-Id: I4231314ef92bb1896d287ae5eb3200d4d53cf4db
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
3158c125c1
commit
8204014007
@@ -413,7 +413,7 @@ class Dumper(DumperBase):
|
||||
return '%d' % intval
|
||||
|
||||
def nativeTypeId(self, nativeType):
|
||||
if nativeType.code == gdb.TYPE_CODE_TYPEDEF:
|
||||
if nativeType and (nativeType.code == gdb.TYPE_CODE_TYPEDEF):
|
||||
return '%s{%s}' % (nativeType, nativeType.strip_typedefs())
|
||||
name = str(nativeType)
|
||||
if len(name) == 0:
|
||||
|
||||
Reference in New Issue
Block a user