diff options
author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2018-07-09 18:51:50 +0000 |
---|---|---|
committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2018-07-09 18:51:50 +0000 |
commit | 378d508446e8123e6affdf14a4258bc22d25ddc2 (patch) | |
tree | a11d5fc9d2d8b81768f028539096b5052ab07058 /utils | |
parent | 3ea14f7d95a88d503a8a60bda28129cc36eea10c (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/gdb-scripts/prettyprinters.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/gdb-scripts/prettyprinters.py b/utils/gdb-scripts/prettyprinters.py index 73700e63893..aee0b8c74bb 100644 --- a/utils/gdb-scripts/prettyprinters.py +++ b/utils/gdb-scripts/prettyprinters.py @@ -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 |