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/gdb-gdb.py | |
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/gdb-gdb.py')
-rw-r--r-- | gdb/gdb-gdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |