Fix pretty printers

pretty printers for rtems_id and rtems_attribute
This commit is contained in:
Dhananjay Balan
2013-07-09 14:37:20 +05:30
committed by Chris Johns
parent f814c7629c
commit 385640641e
2 changed files with 5 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ class attribute:
class attribute_printer:
def __init__(self, attr):
self.attr = attr
self.attr = attribute(attr,'all')
def to_string(self):
return gdb.Value(self.attr.to_string())
@@ -229,3 +229,5 @@ class message_queue:
def show(self, from_tty):
print ' Name:', self.object_control.name()
print ' Attr:', self.attr.to_string()