[libcxx-commits] [PATCH] D117470: [libc++] Fix GDB pretty printers when GDB uses Python 2.7
Alexander Richardson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 19 02:12:44 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG89103bd2f06d: [libc++] Fix GDB pretty printers when GDB uses Python 2.7 (authored by arichardson).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117470/new/
https://reviews.llvm.org/D117470
Files:
libcxx/utils/gdb/libcxx/printers.py
Index: libcxx/utils/gdb/libcxx/printers.py
===================================================================
--- libcxx/utils/gdb/libcxx/printers.py
+++ libcxx/utils/gdb/libcxx/printers.py
@@ -147,6 +147,8 @@
self.count += 1
return ("[%d]" % self.count, child)
+ next = __next__ # Needed for GDB built against Python 2.7.
+
def __init__(self, val):
self.val = val
@@ -356,6 +358,8 @@
self.offset = 0
return ("[%d]" % self.count, outbit)
+ next = __next__ # Needed for GDB built against Python 2.7.
+
class _VectorIterator(object):
"""Class to iterate over the non-bool vector's children."""
@@ -375,6 +379,8 @@
self.item += 1
return ("[%d]" % self.count, entry)
+ next = __next__ # Needed for GDB built against Python 2.7.
+
def __init__(self, val):
"""Set val, length, capacity, and iterator for bool and normal vectors."""
self.val = val
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117470.401143.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220119/9b1262b9/attachment.bin>
More information about the libcxx-commits
mailing list