gdb-gdb.py.in: Fix ordering of TypeFlags objects with Python 3
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 27 Jun 2018 18:32:05 +0000 (14:32 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 27 Jun 2018 18:32:05 +0000 (14:32 -0400)
commit68ad5fb9aa5ea8d00f95a19cd0c3ab211fb21f83
treebae362a8ffa134e8c69bf42a5e382bc440b7d789
parent141ec9f67f11a34bae5953b2923bb71fc74dd52f
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.
gdb/ChangeLog
gdb/gdb-gdb.py.in
This page took 0.03521 seconds and 4 git commands to generate.