Commit ecf9704b authored by hjk's avatar hjk
Browse files

Debugger: support for C99 complex/_Complex type



Task-number: QTCREATORBUG-8513

Change-Id: I1241c05c18f6fa7e1f22276253419c395ae9013b
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 6c44aacf
......@@ -353,7 +353,7 @@ try:
ReferenceCode = gdb.TYPE_CODE_REF
CharCode = gdb.TYPE_CODE_CHAR
BoolCode = gdb.TYPE_CODE_BOOL
ComplexCode = gdb.TYPE_CODE_COMPLEX # Fortran ?
ComplexCode = gdb.TYPE_CODE_COMPLEX
TypedefCode = gdb.TYPE_CODE_TYPEDEF
NamespaceCode = gdb.TYPE_CODE_NAMESPACE
#Code = gdb.TYPE_CODE_DECFLOAT # Decimal floating point.
......
......@@ -1508,6 +1508,16 @@ class Dumper:
self.putNumChild(0)
return
if type.code == ComplexCode:
self.putAddress(value.address)
self.putType(typeName)
if value.is_optimized_out:
self.putValue("<optimized out>")
else:
self.putValue("%s" % value)
self.putNumChild(0)
return
if type.code == TypedefCode:
if typeName in qqDumpers:
self.putType(typeName)
......
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