[rtems-tools commit] Fix pretty printers

Chris Johns chrisj at rtems.org
Sun Aug 24 23:45:33 UTC 2014


Module:    rtems-tools
Branch:    master
Commit:    385640641ef618061cc0d26f711a54bf95661124
Changeset: http://git.rtems.org/rtems-tools/commit/?id=385640641ef618061cc0d26f711a54bf95661124

Author:    Dhananjay Balan <mb.dhananjay at gmail.com>
Date:      Tue Jul  9 14:55:20 2013 +0530

Fix pretty printers
pretty printers for rtems_id and rtems_attribute

---

 tools/gdb/python/classic.py |    4 +++-
 tools/gdb/python/objects.py |    4 ++--
 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))



More information about the vc mailing list