Implement tp_richcompare for gdb.Block
commit400d4e3290b2012f9c44dff21cf6af9bb557e8de
authorTom Tromey <tromey@adacore.com>
Wed, 24 Apr 2024 17:58:38 +0000 (24 11:58 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 10 May 2024 18:09:32 +0000 (10 12:09 -0600)
tree1b51213e1e7f463dffeb0388706ccbc534caa71d
parent4b09134a09ea6663850091c6a8da614cf3902fe1
Implement tp_richcompare for gdb.Block

I noticed that two gdb.Block objects will never compare as equal with
'=='.  This patch fixes the problem by implementing tp_richcompare, as
was done for gdb.Frame.
gdb/python/py-block.c