[llvm] r336580 - [Utils] Fix gdb pretty printers to work with Python 3.
Philip Pfaffe via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 9 11:51:50 PDT 2018
Author: pfaffe
Date: Mon Jul 9 11:51:50 2018
New Revision: 336580
URL: http://llvm.org/viewvc/llvm-project?rev=336580&view=rev
Log:
[Utils] Fix gdb pretty printers to work with Python 3.
Reiterate D23202 for container printers added after the change landed.
Differential Revision: https://reviews.llvm.org/D46578
Modified:
llvm/trunk/utils/gdb-scripts/prettyprinters.py
Modified: llvm/trunk/utils/gdb-scripts/prettyprinters.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gdb-scripts/prettyprinters.py?rev=336580&r1=336579&r2=336580&view=diff
==============================================================================
--- llvm/trunk/utils/gdb-scripts/prettyprinters.py (original)
+++ llvm/trunk/utils/gdb-scripts/prettyprinters.py Mon Jul 9 11:51:50 2018
@@ -102,6 +102,8 @@ class ArrayRefPrinter:
def __init__(self, val):
self.val = val
+ __next__ = next
+
def children(self):
data = self.val['Data']
return self._iterator(data, data + self.val['Length'])
@@ -198,6 +200,8 @@ class DenseMapPrinter:
self.first = False
return 'x', v
+ __next__ = next
+
def __init__(self, val):
self.val = val
More information about the llvm-commits
mailing list