gdbhooks.py: rename parameters to match usage
authorVladislav Ivanishin <vlad@ispras.ru>
Mon, 1 Jul 2019 08:05:51 +0000 (08:05 +0000)
committerVladislav Ivanishin <vlad@gcc.gnu.org>
Mon, 1 Jul 2019 08:05:51 +0000 (08:05 +0000)
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
gcc/gdbhooks.py

index f74d2dc384b6e29dacf9e60710ad22ea6f440217..b01f45f0cc1ed1dc1126152bbda39193139bd3f5 100644 (file)
@@ -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
index e08208e1533667cf55f131d80d1e854d0cf3f292..191a5e2dfec973f8874b34c9a8355c6735e7eda9 100644 (file)
@@ -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()