This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] gdb-gdb.py.in: Fix ordering of TypeFlags objects with Python 3
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 27 Jun 2018 15:06:02 -0400
- Subject: [binutils-gdb] gdb-gdb.py.in: Fix ordering of TypeFlags objects with Python 3
*** TEST RESULTS FOR COMMIT 68ad5fb9aa5ea8d00f95a19cd0c3ab211fb21f83 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 68ad5fb9aa5ea8d00f95a19cd0c3ab211fb21f83
gdb-gdb.py.in: Fix ordering of TypeFlags objects with Python 3
Python 3 doesn't use __cmp__ to order objects, it uses __lt__. Because
of this, we get this exception when trying to pretty-print "type"
objects:
I tested it with Python 2.7 as well.
gdb/ChangeLog:
* gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
<__lt__>: Add.