gdb/
* gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print flds_bnds.fields. (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
This commit is contained in:
parent
c56a97f957
commit
f4859d94a0
@ -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>
|
2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
|
* breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
|
||||||
|
@ -166,7 +166,7 @@ class StructMainTypePrettyPrinter:
|
|||||||
"""Return an image of the main_type field number FIELDNO.
|
"""Return an image of the main_type field number FIELDNO.
|
||||||
"""
|
"""
|
||||||
f = self.val['flds_bnds']['fields'][fieldno]
|
f = self.val['flds_bnds']['fields'][fieldno]
|
||||||
label = "field[%d]:" % fieldno
|
label = "flds_bnds.fields[%d]:" % fieldno
|
||||||
if f['artificial']:
|
if f['artificial']:
|
||||||
label += " (artificial)"
|
label += " (artificial)"
|
||||||
fields = []
|
fields = []
|
||||||
@ -186,7 +186,7 @@ class StructMainTypePrettyPrinter:
|
|||||||
high = str(b['high'])
|
high = str(b['high'])
|
||||||
if b['high_undefined'] != 0:
|
if b['high_undefined'] != 0:
|
||||||
high += " (undefined)"
|
high += " (undefined)"
|
||||||
return "bounds = {%s, %s}" % (low, high)
|
return "flds_bnds.bounds = {%s, %s}" % (low, high)
|
||||||
def type_specific_img(self):
|
def type_specific_img(self):
|
||||||
"""Return a string image of the main_type type_specific union.
|
"""Return a string image of the main_type type_specific union.
|
||||||
Only the relevant component of that union is printed (based on
|
Only the relevant component of that union is printed (based on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user