summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-07-09 14:37:20 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:40 +1000
commit385640641ef618061cc0d26f711a54bf95661124 (patch)
tree50f6435f3ab31a25e5cee2102f32df5f5b5fcd7f
parentf814c7629cf5c87f0262ee877116166a02241c84 (diff)
Fix pretty printers
pretty printers for rtems_id and rtems_attribute
-rw-r--r--tools/gdb/python/classic.py4
-rw-r--r--tools/gdb/python/objects.py4
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/gdb/python/classic.py b/tools/gdb/python/classic.py
index 99d6397..d3f624d 100644
--- a/tools/gdb/python/classic.py
+++ b/tools/gdb/python/classic.py
@@ -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()
+
+
diff --git a/tools/gdb/python/objects.py b/tools/gdb/python/objects.py
index bedf875..25353d7 100644
--- a/tools/gdb/python/objects.py
+++ b/tools/gdb/python/objects.py
@@ -307,8 +307,8 @@ class name_printer:
"""Pretty printer for an object's name. It has to guess the type as no
information is available to help determine it."""
- def __init__(self, name):
- self.name = name(name)
+ def __init__(self, nameval):
+ self.name = name(nameval)
def to_string(self):
return gdb.Value(str(self.name))