gdb/python: remove Python 2/3 compatibility macros
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 21 Mar 2022 14:07:41 +0000 (10:07 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 23 Mar 2022 11:42:57 +0000 (07:42 -0400)
commit5aee45879681a7a76754a25b3f4f96b4529f7ae3
tree04698477d38cf45871c7542eea6ce6a8d2b46a18
parentedae3fd6600f10f9e16dc017b705959f541ed19a
gdb/python: remove Python 2/3 compatibility macros

New in this version:

 - Rebase on master, fix a few more issues that appeared.

python-internal.h contains a number of macros that helped make the code
work with both Python 2 and 3.  Remove them and adjust the code to use
the Python 3 functions.

Change-Id: I99a3d80067fb2d65de4f69f6473ba6ffd16efb2d
25 files changed:
gdb/python/py-arch.c
gdb/python/py-breakpoint.c
gdb/python/py-cmd.c
gdb/python/py-connection.c
gdb/python/py-frame.c
gdb/python/py-inferior.c
gdb/python/py-infthread.c
gdb/python/py-lazy-string.c
gdb/python/py-membuf.c
gdb/python/py-micmd.c
gdb/python/py-objfile.c
gdb/python/py-param.c
gdb/python/py-record-btrace.c
gdb/python/py-record-full.c
gdb/python/py-record.c
gdb/python/py-registers.c
gdb/python/py-signalevent.c
gdb/python/py-symbol.c
gdb/python/py-symtab.c
gdb/python/py-type.c
gdb/python/py-unwind.c
gdb/python/py-utils.c
gdb/python/py-xmethods.c
gdb/python/python-internal.h
gdb/python/python.c