]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/NEWS
Add attributes and methods to gdb.Inferior
authorTom Tromey <tromey@adacore.com>
Mon, 1 May 2023 19:53:59 +0000 (13:53 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 24 May 2023 12:16:10 +0000 (06:16 -0600)
commit3153113252f3b949a159439a17e88af8ff0dce30
treed16ff13f418aa76f116561500da0d812a9536922
parent2f328f5b92f1eba7fef3f49058a4cb4494f98833
Add attributes and methods to gdb.Inferior

This adds two new attributes and three new methods to gdb.Inferior.

The attributes let Python code see the command-line arguments and the
name of "main".  Argument setting is also supported.

The methods let Python code manipulate the inferior's environment
variables.

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