From 0967a1b679495f728781bd05318379024cadf5c5 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Sat, 13 Jul 2013 16:31:59 +0530 Subject: Refactoring - drop _printer suffix from printer classes. --- tools/gdb/python/supercore_printer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/gdb/python/supercore_printer.py') diff --git a/tools/gdb/python/supercore_printer.py b/tools/gdb/python/supercore_printer.py index cee9097..ec1d416 100644 --- a/tools/gdb/python/supercore_printer.py +++ b/tools/gdb/python/supercore_printer.py @@ -4,7 +4,7 @@ import objects import itertools -class id_printer: +class id: """Print an object given the ID. Print using the struct display hint and an iterator.""" @@ -60,7 +60,7 @@ class id_printer: def display_hint (self): return 'struct' -class name_printer: +class name: """Pretty printer for an object's name. It has to guess the type as no information is available to help determine it.""" @@ -70,7 +70,7 @@ class name_printer: def to_string(self): return str(self.name) -class control_printer: +class control: class iterator: """Use an iterator for each field expanded from the id so GDB output @@ -117,14 +117,14 @@ class control_printer: return 'struct' -class state_printer: +class state: def __init__(self, state): self.state = threads.state(state) def to_string(self): return self.state.to_string() -class chains_printer: +class chains: def __init__(self,chain): self.chain = chains.control(chain) @@ -132,7 +132,7 @@ class chains_printer: def to_string(self): return "First:"+str(self.chain.first())+"\n Last:"+str(self.chain.last()) -class node_printer: +class node: def __init__(self, node): self.node = chains.node(node) -- cgit v1.2.3