diff options
author | Dhananjay Balan <mb.dhananjay@gmail.com> | 2013-08-05 00:17:39 +0530 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-25 09:52:41 +1000 |
commit | 559bd50d27023ccd7d65f1c023e075fe965dcbfd (patch) | |
tree | 498cde84757889bb78d802bc1eaf6768aa0ac036 | |
parent | 66d0779c33ac817c8f23a24294d617800581ca36 (diff) |
Catch invalid object ID.
-rw-r--r-- | tools/gdb/python/rtems.py | 2 |
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() |