From 823d12a8370ec0298421fef4586c03a6b2eaf851 Mon Sep 17 00:00:00 2001 From: Vladislav Ivanishin Date: Mon, 1 Jul 2019 08:05:51 +0000 Subject: [PATCH] gdbhooks.py: rename parameters to match usage gcc/ * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder parameter names to match usage (no functional change). (GdbPrettyPrinters.add_printer_for_regex): Ditto. From-SVN: r272845 --- gcc/ChangeLog | 6 ++++++ gcc/gdbhooks.py | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f74d2dc384b..b01f45f0cc1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Vladislav Ivanishin + + * 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 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index e08208e1533..191a5e2dfec 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() -- 2.30.2