[rtems-tools commit] Object can have index from 1 to 'maximum'
Chris Johns
chrisj at rtems.org
Sun Aug 24 23:45:33 UTC 2014
Module: rtems-tools
Branch: master
Commit: ce55b57c4c4d6e3a090bdfbf9053a4e931eeb078
Changeset: http://git.rtems.org/rtems-tools/commit/?id=ce55b57c4c4d6e3a090bdfbf9053a4e931eeb078
Author: Dhananjay Balan <mb.dhananjay at gmail.com>
Date: Mon Jul 8 21:58:21 2013 +0530
Object can have index from 1 to 'maximum'
---
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] + '*)' + \
More information about the vc
mailing list