Commit c691cca4 authored by hjk's avatar hjk

Debugger: Always sort base classes first when showing a structure

Simply relying on '[' < any_letter is not good enough in the
presence of uppercase identifiers.

Task-number: QTCREATORBUG-14637
Change-Id: Ib0e305c0b86f3b117c07de18cde00b14f424a7c4
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 84d06d0e
......@@ -1153,8 +1153,7 @@ class Dumper(DumperBase):
def putFields(self, value, dumpBase = True):
fields = value.type.fields()
if self.sortStructMembers:
fields.sort(key = lambda field:
'[' + if field.is_base_class else str(
fields.sort(key = lambda field: "%d%s" % (not field.is_base_class,
#warn("TYPE: %s" % value.type)
#warn("FIELDS: %s" % fields)
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