Skip to content
Commit c506be7d authored by Maciej W. Rozycki's avatar Maciej W. Rozycki
Browse files

GDB/Python: Make `None' stand for `unlimited' in setting integer parameters



Similarly to booleans and following the fix for PR python/29217 make
`gdb.parameter' accept `None' for `unlimited' with parameters of the
PARAM_UINTEGER, PARAM_INTEGER, and PARAM_ZUINTEGER_UNLIMITED types, as
`None' is already returned by parameters of the two former types, so
one might expect to be able to feed it back.  It also makes it possible
to avoid the need to know what the internal integer representation is
for the special setting of `unlimited'.

Expand the testsuite accordingly.

Approved-By: default avatarSimon Marchi <simon.marchi@polymtl.ca>
parent e7e1f203
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment