gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 9 Feb 2012 15:14:46 +0000 (15:14 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 9 Feb 2012 15:14:46 +0000 (15:14 +0000)
* gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
flds_bnds.fields.
(StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.

gdb/ChangeLog
gdb/gdb-gdb.py

index cb05fb5a55bc6e31283abff62b7295e14934ab79..8da3f73037e6514f0d131b2c42b33d588809fd1d 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 7dace99bd2df0c25b4b08fa6787feebe35fa01fb..579500fdd3ba919b292f6708f4552cdc417ef1c1 100644 (file)
@@ -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