CXX python/py-infevents.o
../../gdb/python/py-gdb-readline.c: In function ‘char* gdbpy_readline_wrapper(FILE*, FILE*, const char*)’:
../../gdb/python/py-gdb-readline.c:59:29: error: ‘_PyOS_ReadlineTState’ was not declared in this scope; did you mean ‘PyOS_Readline’?
59 | PyEval_RestoreThread (_PyOS_ReadlineTState);
| ^~~~~~~~~~~~~~~~~~~~
| PyOS_Readline
CXX python/py-infthread.o
make[2]: *** [Makefile:1897: python/py-gdb-readline.o] Error 1
Using latest Python 3.13.0rc1
Bug is fixed in upstream bminor/binutils-gdb