summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gdb-scripts
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin.dev@gmail.com>2016-08-05 16:48:31 +0000
committerIgor Kudrin <ikudrin.dev@gmail.com>2016-08-05 16:48:31 +0000
commita097a36e2a86f9b5209aea546f3c4cf5064aec87 (patch)
tree7ca058ac8a106a8d731317c05f7951a26147d4d0 /llvm/utils/gdb-scripts
parentfbde435517f8e2fc884423aa5b007ae4ea6af754 (diff)
downloadbcm5719-llvm-a097a36e2a86f9b5209aea546f3c4cf5064aec87.tar.gz
bcm5719-llvm-a097a36e2a86f9b5209aea546f3c4cf5064aec87.zip
Fix gdb pretty printers to work with Python 3.
Differential Revision: https://reviews.llvm.org/D23202 llvm-svn: 277833
Diffstat (limited to 'llvm/utils/gdb-scripts')
-rw-r--r--llvm/utils/gdb-scripts/prettyprinters.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/gdb-scripts/prettyprinters.py b/llvm/utils/gdb-scripts/prettyprinters.py
index 0dbc7af3e46..1ebe50b2b71 100644
--- a/llvm/utils/gdb-scripts/prettyprinters.py
+++ b/llvm/utils/gdb-scripts/prettyprinters.py
@@ -46,6 +46,8 @@ class SmallVectorPrinter:
self.cur = self.cur + 1
return '[%d]' % count, cur.dereference()
+ __next__ = next
+
def __init__(self, val):
self.val = val
@@ -86,6 +88,8 @@ class ArrayRefPrinter:
self.cur = self.cur + 1
return '[%d]' % count, cur.dereference()
+ __next__ = next
+
def __init__(self, val):
self.val = val
OpenPOWER on IntegriCloud