diff options
author | Tom Tromey <tom@tromey.com> | 2018-10-24 16:33:23 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-11-04 08:01:00 -0700 |
commit | 12dfa12a3cfd4552c0cc4d7b271ab3e9c439589a (patch) | |
tree | 51af9cd88ff95be49b01e5933765e6f08e45b3b2 /gdb/python/py-value.c | |
parent | 9446bd8ad68d5e20151f3066104b575534c9ecda (diff) | |
download | gdb-12dfa12a3cfd4552c0cc4d7b271ab3e9c439589a.zip gdb-12dfa12a3cfd4552c0cc4d7b271ab3e9c439589a.tar.gz gdb-12dfa12a3cfd4552c0cc4d7b271ab3e9c439589a.tar.bz2 |
Return gdbpy_ref from gdb_py_object_from_*longest
This changes gdb_py_object_from_longest and
gdb_py_object_from_ulongest to return a gdbpy_ref rather than a
PyObject*.
gdb/ChangeLog
2018-11-04 Tom Tromey <tom@tromey.com>
* python/python-internal.h (gdb_py_object_from_longest)
(gdb_py_object_from_ulongest): Return gdbpy_ref.
* python/py-value.c (valpy_int): Update.
* python/py-utils.c (gdb_py_object_from_longest): Return
gdbpy_ref.
(gdb_py_object_from_ulongest): Likewise.
* python/py-type.c (typy_get_alignof): Update.
* python/py-linetable.c (ltpy_get_all_source_lines)
(ltpy_entry_get_line, ltpy_entry_get_pc): Update.
* python/py-block.c (blpy_get_start, blpy_get_end): Update.
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 26e91ff..fe2adcc 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -1516,9 +1516,9 @@ valpy_int (PyObject *self) END_CATCH if (TYPE_UNSIGNED (type)) - return gdb_py_object_from_ulongest (l); + return gdb_py_object_from_ulongest (l).release (); else - return gdb_py_object_from_longest (l); + return gdb_py_object_from_longest (l).release (); } #endif |