summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-08-05 00:17:39 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:41 +1000
commit559bd50d27023ccd7d65f1c023e075fe965dcbfd (patch)
tree498cde84757889bb78d802bc1eaf6768aa0ac036
parent66d0779c33ac817c8f23a24294d617800581ca36 (diff)
downloadrtems-tools-559bd50d27023ccd7d65f1c023e075fe965dcbfd.tar.bz2
Catch invalid object ID.
-rw-r--r--tools/gdb/python/rtems.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gdb/python/rtems.py b/tools/gdb/python/rtems.py
index b2dc776..20f44a2 100644
--- a/tools/gdb/python/rtems.py
+++ b/tools/gdb/python/rtems.py
@@ -100,6 +100,8 @@ class rtems_object(gdb.Command):
id = objects.ident(num)
if not id.valid():
print 'Invalid object id'
+ return
+
print 'API:%s Class:%s Node:%d Index:%d Id:%08X' % \
(id.api(), id._class(), id.node(), id.index(), id.value())
objectname = id.api() + '/' + id._class()