Fix name of main_type field type in pretty printer
authorHannes Domani <ssbssa@yahoo.de>
Fri, 18 Dec 2020 17:35:31 +0000 (18:35 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Fri, 18 Dec 2020 21:06:01 +0000 (22:06 +0100)
It was renamed from type to m_type.

gdb/ChangeLog:

2020-12-18  Hannes Domani  <ssbssa@yahoo.de>

* gdb-gdb.py.in: Fix main_type field name.

gdb/ChangeLog
gdb/gdb-gdb.py.in

index 7891f491906209cea39f258829a443fc450bebb3..a7b93353bf23dadfd4b0909b48b3c5e736c5a4eb 100644 (file)
@@ -1,3 +1,7 @@
+2020-12-18  Hannes Domani  <ssbssa@yahoo.de>
+
+       * gdb-gdb.py.in: Fix main_type field name.
+
 2020-12-18  Hannes Domani  <ssbssa@yahoo.de>
 
        * python/py-value.c (valpy_format_string): Implement address keyword.
index ff68bd71a682296a1bc4d5018c9b627c7f8bd0ae..da23ddbfd011f6c002a882f5a86bacf9a6779857 100644 (file)
@@ -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))