summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()