Return gdbpy_ref from gdb_py_object_from_*longest
authorTom Tromey <tom@tromey.com>
Wed, 24 Oct 2018 22:33:23 +0000 (16:33 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 4 Nov 2018 15:01:00 +0000 (08:01 -0700)
commit12dfa12a3cfd4552c0cc4d7b271ab3e9c439589a
tree51af9cd88ff95be49b01e5933765e6f08e45b3b2
parent9446bd8ad68d5e20151f3066104b575534c9ecda
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.
gdb/ChangeLog
gdb/python/py-block.c
gdb/python/py-linetable.c
gdb/python/py-type.c
gdb/python/py-utils.c
gdb/python/py-value.c
gdb/python/python-internal.h