From: Hannes Domani Date: Fri, 18 Dec 2020 17:35:31 +0000 (+0100) Subject: Fix name of main_type field type in pretty printer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e51765f93220525fc3976c161cf5003e91e9d0ea;p=binutils-gdb.git Fix name of main_type field type in pretty printer It was renamed from type to m_type. gdb/ChangeLog: 2020-12-18 Hannes Domani * gdb-gdb.py.in: Fix main_type field name. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7891f491906..a7b93353bf2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-12-18 Hannes Domani + + * gdb-gdb.py.in: Fix main_type field name. + 2020-12-18 Hannes Domani * python/py-value.c (valpy_format_string): Implement address keyword. diff --git a/gdb/gdb-gdb.py.in b/gdb/gdb-gdb.py.in index ff68bd71a68..da23ddbfd01 100644 --- a/gdb/gdb-gdb.py.in +++ b/gdb/gdb-gdb.py.in @@ -175,7 +175,7 @@ class StructMainTypePrettyPrinter: label += " (artificial)" fields = [] fields.append("name = %s" % f['name']) - fields.append("type = %s" % f['type']) + fields.append("type = %s" % f['m_type']) fields.append("loc_kind = %s" % f['loc_kind']) fields.append("bitsize = %d" % f['bitsize']) fields.append(self.struct_field_location_img(f))