This is the mail archive of the gdb-testers@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]