mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-17 20:03:37 +08:00
Fix pretty printers
pretty printers for rtems_id and rtems_attribute
This commit is contained in:

committed by
Chris Johns

parent
f814c7629c
commit
385640641e
@@ -101,7 +101,7 @@ class attribute:
|
|||||||
class attribute_printer:
|
class attribute_printer:
|
||||||
|
|
||||||
def __init__(self, attr):
|
def __init__(self, attr):
|
||||||
self.attr = attr
|
self.attr = attribute(attr,'all')
|
||||||
|
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
return gdb.Value(self.attr.to_string())
|
return gdb.Value(self.attr.to_string())
|
||||||
@@ -229,3 +229,5 @@ class message_queue:
|
|||||||
def show(self, from_tty):
|
def show(self, from_tty):
|
||||||
print ' Name:', self.object_control.name()
|
print ' Name:', self.object_control.name()
|
||||||
print ' Attr:', self.attr.to_string()
|
print ' Attr:', self.attr.to_string()
|
||||||
|
|
||||||
|
|
||||||
|
@@ -307,8 +307,8 @@ class name_printer:
|
|||||||
"""Pretty printer for an object's name. It has to guess the type as no
|
"""Pretty printer for an object's name. It has to guess the type as no
|
||||||
information is available to help determine it."""
|
information is available to help determine it."""
|
||||||
|
|
||||||
def __init__(self, name):
|
def __init__(self, nameval):
|
||||||
self.name = name(name)
|
self.name = name(nameval)
|
||||||
|
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
return gdb.Value(str(self.name))
|
return gdb.Value(str(self.name))
|
||||||
|
Reference in New Issue
Block a user