[PATCH] GDB: Prefer Python 3 over 2

Chris Johns chrisj at rtems.org
Fri Mar 18 21:56:49 UTC 2022


> On 19 Mar 2022, at 2:40 am, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
> 
> On 17/03/2022 12:51, Sebastian Huber wrote:
>> This fixes the build of a recent GDB version:
>> gdb/python/py-micmd.c: In function 'int micmdpy_uninstall_command(micmdpy_object*)':
>> gdb/python/py-micmd.c:430:20: error: 'PyDict_GetItemWithError' was not declared in this scope
>>    PyObject *curr = PyDict_GetItemWithError (mi_cmd_dict.get (),
>>                     ^~~~~~~~~~~~~~~~~~~~~~~

Has a bug report been raised with gdb?

> I was able to build the latest GDB with this patch. Otherwise all architectures failed with the above error.

Has gdb dropped Python 2 support?

What happens on a host without python3 installed? Does the error appear? Does this in effect force RTEMS to drop the Python2 requirement for rtems6?

Chris




More information about the devel mailing list