From 559bd50d27023ccd7d65f1c023e075fe965dcbfd Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Mon, 5 Aug 2013 00:17:39 +0530 Subject: Catch invalid object ID. --- tools/gdb/python/rtems.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v1.2.3