[rtems-tools commit] Catch invalid object ID.
Chris Johns
chrisj at rtems.org
Sun Aug 24 23:45:34 UTC 2014
Module: rtems-tools
Branch: master
Commit: 559bd50d27023ccd7d65f1c023e075fe965dcbfd
Changeset: http://git.rtems.org/rtems-tools/commit/?id=559bd50d27023ccd7d65f1c023e075fe965dcbfd
Author: Dhananjay Balan <mb.dhananjay at gmail.com>
Date: Mon Aug 5 00:35:39 2013 +0530
Catch invalid object ID.
---
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()
More information about the vc
mailing list