From: Jan Kratochvil Date: Fri, 15 Jan 2010 19:22:40 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64aa97315d44fc3f70974d972a9f2c219e584395;p=binutils-gdb.git gdb/ * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE comparison. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4e2b669006d..424daaeca09 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-01-15 Jan Kratochvil + + * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE + comparison. + 2010-01-15 Eric Botcazou "info tasks" broken by typedefs in ATCB type definitions. diff --git a/gdb/gdb-gdb.py b/gdb/gdb-gdb.py index 44133abd498..c603897118a 100644 --- a/gdb/gdb-gdb.py +++ b/gdb/gdb-gdb.py @@ -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())