summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Ivanishin <vlad@ispras.ru>2019-07-01 08:05:51 +0000
committerVladislav Ivanishin <vlad@gcc.gnu.org>2019-07-01 08:05:51 +0000
commit823d12a8370ec0298421fef4586c03a6b2eaf851 (patch)
tree877c2ebf4329e4366f7d2cfd4f55034292c4a47a
parent4c40b365b86c42536bb2ed6c943a45b0bfe2b5eb (diff)
downloadgcc-823d12a8370ec0298421fef4586c03a6b2eaf851.tar.gz
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gdbhooks.py8
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 <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
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()