diff options
author | Dhananjay Balan <mb.dhananjay@gmail.com> | 2013-07-08 21:40:21 +0530 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-25 09:52:40 +1000 |
commit | ce55b57c4c4d6e3a090bdfbf9053a4e931eeb078 (patch) | |
tree | 9a340d790a84bf2734473f1245bfa788b407a4d9 | |
parent | 10bcd5d4dc77a9296d458855c9385fdd82c97ac0 (diff) |
Object can have index from 1 to 'maximum'
-rw-r--r-- | tools/gdb/python/objects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gdb/python/objects.py b/tools/gdb/python/objects.py index 16ceac1..bedf875 100644 --- a/tools/gdb/python/objects.py +++ b/tools/gdb/python/objects.py @@ -68,7 +68,7 @@ class infotables: n = self.name(api, _class) self.load(n) max = self.maximum(api, _class) - if index >= max: + if index > max: raise IndexError('object index out of range (%d)' % (max)) table_type = self.tables_types[n] expr = '(' + table_type[0] + '*)' + \ |