diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-15 19:22:40 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-15 19:22:40 +0000 |
commit | 64aa97315d44fc3f70974d972a9f2c219e584395 (patch) | |
tree | 6b276b834422a8fc2b81411f6b10a289361c244b /gdb | |
parent | 1472ddb3eb3e0b0d41f3e1c6c3c2891374811d31 (diff) | |
download | gdb-64aa97315d44fc3f70974d972a9f2c219e584395.zip gdb-64aa97315d44fc3f70974d972a9f2c219e584395.tar.gz gdb-64aa97315d44fc3f70974d972a9f2c219e584395.tar.bz2 |
gdb/
* gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
comparison.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdb-gdb.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4e2b669..424daae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/gdb-gdb.py b/gdb/gdb-gdb.py index 44133ab..c60389711 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()) |