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 | 0566f2352ae5286f73ed5fa2d7cc65933f486aac (patch) | |
tree | c6dcaeadcde19886eac03d1b99cbc56f08e4b4fa /llvm/utils/gdb-scripts | |
parent | 3dbde8a77843bb92a1cda9b5c1ef975edf8a3145 (diff) | |
download | bcm5719-llvm-0566f2352ae5286f73ed5fa2d7cc65933f486aac.tar.gz bcm5719-llvm-0566f2352ae5286f73ed5fa2d7cc65933f486aac.zip |
[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
llvm-svn: 336580
Diffstat (limited to 'llvm/utils/gdb-scripts')
-rw-r--r-- | llvm/utils/gdb-scripts/prettyprinters.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/gdb-scripts/prettyprinters.py b/llvm/utils/gdb-scripts/prettyprinters.py index 73700e63893..aee0b8c74bb 100644 --- a/llvm/utils/gdb-scripts/prettyprinters.py +++ b/llvm/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 |