* gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
	comparison.
This commit is contained in:
Jan Kratochvil 2010-01-15 19:22:40 +00:00
parent 1472ddb3eb
commit 64aa97315d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
comparison.
2010-01-15 Eric Botcazou <botcazou@adacore.com>
"info tasks" broken by typedefs in ATCB type definitions.

View File

@ -225,7 +225,7 @@ class StructMainTypePrettyPrinter:
if self.val['nfields'] > 0:
for fieldno in range(self.val['nfields']):
fields.append(self.struct_field_img(fieldno))
if self.val.type.code == gdb.TYPE_CODE_RANGE:
if self.val['code'] == gdb.TYPE_CODE_RANGE:
fields.append(self.bounds_img())
fields.append(self.type_specific_img())