summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/gdb/python/objects.py2
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] + '*)' + \