diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-02-09 15:14:43 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-02-09 15:14:43 +0000 |
commit | d1b75579ce98a53b2d28875ce6dbd3a9dd7a3e6a (patch) | |
tree | e9dc90a9f6bc3cdcc67bb200c7ff1b29b9d30131 | |
parent | 6b9f2e1d097baca06d08fd126f69c710f4e704f1 (diff) | |
download | gdb-d1b75579ce98a53b2d28875ce6dbd3a9dd7a3e6a.tar.gz |
gdb/
* gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
flds_bnds.fields.
(StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdb-gdb.py | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb05fb5a55b..8da3f73037e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com> + * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print + flds_bnds.fields. + (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds. + +2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com> + * breakpoint.c (bp_location_compare): Fix comment. Reindent the code. 2012-02-08 Joel Brobecker <brobecker@adacore.com> diff --git a/gdb/gdb-gdb.py b/gdb/gdb-gdb.py index 7dace99bd2d..579500fdd3b 100644 --- a/gdb/gdb-gdb.py +++ b/gdb/gdb-gdb.py @@ -166,7 +166,7 @@ class StructMainTypePrettyPrinter: """Return an image of the main_type field number FIELDNO. """ f = self.val['flds_bnds']['fields'][fieldno] - label = "field[%d]:" % fieldno + label = "flds_bnds.fields[%d]:" % fieldno if f['artificial']: label += " (artificial)" fields = [] @@ -186,7 +186,7 @@ class StructMainTypePrettyPrinter: high = str(b['high']) if b['high_undefined'] != 0: high += " (undefined)" - return "bounds = {%s, %s}" % (low, high) + return "flds_bnds.bounds = {%s, %s}" % (low, high) def type_specific_img(self): """Return a string image of the main_type type_specific union. Only the relevant component of that union is printed (based on |