summaryrefslogtreecommitdiff
path: root/gdb/python/py-value.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-09-15 11:08:56 -0600
committerTom Tromey <tromey@adacore.com>2020-09-15 11:08:56 -0600
commit4bde49dc81c5c16189af70b9a144dbb5651994f1 (patch)
tree538a8007afa184fc28f2f9a5781265afc1402156 /gdb/python/py-value.c
parent37431074656958dfb788a1980f5a1cd474705b83 (diff)
downloadbinutils-gdb-4bde49dc81c5c16189af70b9a144dbb5651994f1.tar.gz
Don't use gdb_py_long_from_longest
Change the Python layer to avoid gdb_py_long_from_longest, and remove the defines. gdb/ChangeLog 2020-09-15 Tom Tromey <tromey@adacore.com> * python/python-internal.h (gdb_py_long_from_longest): Remove defines. * python/py-value.c (valpy_long): Use gdb_py_object_from_longest. * python/py-type.c (convert_field, typy_get_sizeof): Use gdb_py_object_from_longest. * python/py-record-btrace.c (btpy_list_index): Use gdb_py_object_from_longest.
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r--gdb/python/py-value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c
index 2d9e77aef2b..504a9de9cee 100644
--- a/gdb/python/py-value.c
+++ b/gdb/python/py-value.c
@@ -1733,7 +1733,7 @@ valpy_long (PyObject *self)
if (type->is_unsigned ())
return gdb_py_long_from_ulongest (l);
else
- return gdb_py_long_from_longest (l);
+ return gdb_py_object_from_longest (l).release ();
}
/* Implements conversion to float. */