From 64aa97315d44fc3f70974d972a9f2c219e584395 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 15 Jan 2010 19:22:40 +0000 Subject: [PATCH] gdb/ * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE comparison. --- gdb/ChangeLog | 5 +++++ gdb/gdb-gdb.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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()) -- 2.30.2