summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2020-12-18 18:35:31 +0100
committerHannes Domani <ssbssa@yahoo.de>2020-12-18 22:06:01 +0100
commite51765f93220525fc3976c161cf5003e91e9d0ea (patch)
treed77c8c864a4782728ed3401ce16764a2e6ac5061 /gdb
parente84604595250f89a528cc422eed110c294c94a02 (diff)
downloadbinutils-gdb-e51765f93220525fc3976c161cf5003e91e9d0ea.tar.gz
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 <ssbssa@yahoo.de> * gdb-gdb.py.in: Fix main_type field name.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdb-gdb.py.in2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7891f491906..a7b93353bf2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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.
2020-12-18 Hannes Domani <ssbssa@yahoo.de>
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))