summaryrefslogtreecommitdiff
path: root/tools/gdb/python/supercore_printer.py
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-07-13 16:31:59 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:40 +1000
commit0967a1b679495f728781bd05318379024cadf5c5 (patch)
tree23e380a16be8f044df9d894855065d27664962f1 /tools/gdb/python/supercore_printer.py
parenta785e254f2360e946baa14a11fbd3f403047b880 (diff)
Refactoring
- drop _printer suffix from printer classes.
Diffstat (limited to '')
-rw-r--r--tools/gdb/python/supercore_printer.py12
1 files changed, 6 insertions, 6 deletions
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)