From ce55b57c4c4d6e3a090bdfbf9053a4e931eeb078 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Mon, 8 Jul 2013 21:40:21 +0530 Subject: Object can have index from 1 to 'maximum' --- tools/gdb/python/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] + '*)' + \ -- cgit v1.2.3