summaryrefslogtreecommitdiff
path: root/solenv/gdb/boost/lib
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2013-11-14 12:14:29 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-15 21:03:07 +0000
commitc5b7cc9598f4a9a5c7c42c1ccd06765dc17b4c24 (patch)
tree0cf967a13cc0b3cd979f3e4b9240089752c6fb13 /solenv/gdb/boost/lib
parent46dbc13169a9b97d3f8ac310ac35d5f51eea7de6 (diff)
Add Python 3 compatibility to GDB pretty printers.
GDB on *buntu is linked against Python 3.3, which has many incompatibilities to Python 2, resulting in broken code. This patch uses the Python six library as a compatibility layer. Change-Id: Icb4cc54a1d05afb119376bb5e1430c91cb794d08 Reviewed-on: https://gerrit.libreoffice.org/6688 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'solenv/gdb/boost/lib')
-rw-r--r--solenv/gdb/boost/lib/unordered.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/solenv/gdb/boost/lib/unordered.py b/solenv/gdb/boost/lib/unordered.py
index eecfa7935a8e..ee58d0481158 100644
--- a/solenv/gdb/boost/lib/unordered.py
+++ b/solenv/gdb/boost/lib/unordered.py
@@ -19,6 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import gdb
+import six
class Unordered(object):
'''Common representation of Boost.Unordered types'''
@@ -57,7 +58,7 @@ class Unordered(object):
assert node_type != None
return node_type
- class _iterator(object):
+ class _iterator(six.Iterator):
'''Iterator for Boost.Unordered types'''
def __init__(self, first_bucket, last_bucket, node_type, extractor):
@@ -71,7 +72,7 @@ class Unordered(object):
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
if self.node:
self.node = self.node.dereference()['next_']