Catch invalid object ID.

This commit is contained in:
Dhananjay Balan
2013-08-05 00:17:39 +05:30
committed by Chris Johns
parent 66d0779c33
commit 559bd50d27

View File

@@ -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()