aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gdbhooks.py')
-rw-r--r--gcc/gdbhooks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py
index e08208e..191a5e2 100644
--- a/gcc/gdbhooks.py
+++ b/gcc/gdbhooks.py
@@ -524,11 +524,11 @@ class GdbPrettyPrinters(gdb.printing.PrettyPrinter):
def __init__(self, name):
super(GdbPrettyPrinters, self).__init__(name, [])
- def add_printer_for_types(self, name, class_, types):
- self.subprinters.append(GdbSubprinterTypeList(name, class_, types))
+ def add_printer_for_types(self, types, name, class_):
+ self.subprinters.append(GdbSubprinterTypeList(types, name, class_))
- def add_printer_for_regex(self, name, class_, regex):
- self.subprinters.append(GdbSubprinterRegex(name, class_, regex))
+ def add_printer_for_regex(self, regex, name, class_):
+ self.subprinters.append(GdbSubprinterRegex(regex, name, class_))
def __call__(self, gdbval):
type_ = gdbval.type.unqualified()