diff options
author | Tom Tromey <tromey@adacore.com> | 2020-09-15 11:08:56 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-09-15 11:08:57 -0600 |
commit | 512116ce26a66338e1be1847cc8b014f4d4bbc13 (patch) | |
tree | 4d657df7829c22a8c21718049d882a8577e2f62b /gdb/python/python.c | |
parent | 4ab1029c56b3745c22585c5d775c6a87fd510eab (diff) | |
download | gdb-512116ce26a66338e1be1847cc8b014f4d4bbc13.zip gdb-512116ce26a66338e1be1847cc8b014f4d4bbc13.tar.gz gdb-512116ce26a66338e1be1847cc8b014f4d4bbc13.tar.bz2 |
Don't use PyLong_FromUnsignedLong
This changes gdb to avoid PyLong_FromUnsignedLong, preferring
gdb_py_object_from_ulongest instead.
gdb/ChangeLog
2020-09-15 Tom Tromey <tromey@adacore.com>
* python/python.c (gdbpy_parameter_value): Use
gdb_py_object_from_ulongest.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 9cc8af6..8786027 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -504,13 +504,13 @@ gdbpy_parameter_value (enum var_types type, void *var) if (val == UINT_MAX) Py_RETURN_NONE; - return PyLong_FromUnsignedLong (val); + return gdb_py_object_from_ulongest (val).release (); } case var_zuinteger: { unsigned int val = * (unsigned int *) var; - return PyLong_FromUnsignedLong (val); + return gdb_py_object_from_ulongest (val).release (); } } |