From 385640641ef618061cc0d26f711a54bf95661124 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Tue, 9 Jul 2013 14:37:20 +0530 Subject: 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)) -- cgit v1.2.3