]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/python: add function () method to gdb.Type object
authorJan Vrany <jan.vrany@labware.com>
Thu, 21 Nov 2024 13:49:08 +0000 (13:49 +0000)
committerJan Vrany <jan.vrany@labware.com>
Thu, 21 Nov 2024 13:49:08 +0000 (13:49 +0000)
commitf350e1aba5dac9a8e3f48425f502e4b69e9e2455
tree52d5305558edd66b6b0e160456f83c876077855e
parent418d86ec689d323f46a354c5833ec6fb4d6957cb
gdb/python: add function () method to gdb.Type object

This commit adds a new method to Python type objects that returns
possibly new function type returning that type. Parameter types can
be specified too.

This will be useful later to create types for function symbols created
using Python extension code.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/NEWS
gdb/doc/python.texi
gdb/python/py-type.c
gdb/testsuite/gdb.python/py-type.exp