]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/doc/python.texi
Handle var_zuinteger and var_zuinteger_unlimited from Python
authorTom Tromey <tom@tromey.com>
Thu, 26 Apr 2018 22:18:07 +0000 (16:18 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 2 May 2018 16:31:55 +0000 (10:31 -0600)
commit0489430a0e1a3ea302c22c540f3629e471591f23
tree160d2ad23b6002ff316fbae5d840e4a3da90ff3c
parentd966ab2dc5c10626a1389c87e9bcf924a99e9dfb
Handle var_zuinteger and var_zuinteger_unlimited from Python

PR python/20084 points out that the Python API doesn't handle the
var_zuinteger and var_zuinteger_unlimited parameter types.

This patch adds support for these types.

Regression tested on x86-64 Fedora 26.

ChangeLog
2018-05-02  Tom Tromey  <tom@tromey.com>

PR python/20084:
* python/python.c (gdbpy_parameter_value): Handle var_zuinteger
and var_zuinteger_unlimited.
* python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
and PARAM_ZUINTEGER_UNLIMITED.
(set_parameter_value): Handle var_zuinteger and
var_zuinteger_unlimited.
(add_setshow_generic): Likewise.
(parmpy_init): Likewise.

doc/ChangeLog
2018-05-02  Tom Tromey  <tom@tromey.com>

PR python/20084:
* python.texi (Parameters In Python): Document PARAM_ZUINTEGER and
PARAM_ZUINTEGER_UNLIMITED.

testsuite/ChangeLog
2018-05-02  Tom Tromey  <tom@tromey.com>

PR python/20084:
* gdb.python/py-parameter.exp: Add PARAM_ZUINTEGER and
PARAM_ZUINTEGER_UNLIMITED tests.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-param.c
gdb/python/python.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-parameter.exp