mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-16 01:06:37 +08:00
Catch invalid object ID.
This commit is contained in:

committed by
Chris Johns

parent
66d0779c33
commit
559bd50d27
@@ -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()
|
||||
|
Reference in New Issue
Block a user