+2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
+
+ * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
+ parameter names to match usage (no functional change).
+ (GdbPrettyPrinters.add_printer_for_regex): Ditto.
+
2019-07-01 Richard Biener <rguenther@suse.de>
* tree-ssa-sccvn.c (class pass_fre): Add may_iterate
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()