mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-16 17:48:05 +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)
|
id = objects.ident(num)
|
||||||
if not id.valid():
|
if not id.valid():
|
||||||
print 'Invalid object id'
|
print 'Invalid object id'
|
||||||
|
return
|
||||||
|
|
||||||
print 'API:%s Class:%s Node:%d Index:%d Id:%08X' % \
|
print 'API:%s Class:%s Node:%d Index:%d Id:%08X' % \
|
||||||
(id.api(), id._class(), id.node(), id.index(), id.value())
|
(id.api(), id._class(), id.node(), id.index(), id.value())
|
||||||
objectname = id.api() + '/' + id._class()
|
objectname = id.api() + '/' + id._class()
|
||||||
|
Reference in New Issue
Block a user