gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 15 Jan 2010 19:22:40 +0000 (19:22 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 15 Jan 2010 19:22:40 +0000 (19:22 +0000)
* gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
comparison.

gdb/ChangeLog
gdb/gdb-gdb.py

index 4e2b669006d67d3997ad51ab585031b5dc701911..424daaeca09d3cc4ecafa61b5789506601e769da 100644 (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.
index 44133abd4988cfaff35c3a42612648181be125cb..c603897118a190b6670e761114c3474d589ddbb4 100644 (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())