gdb/python: Make convert_values_to_python return gdbpy_ref<>
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 10 Sep 2018 11:05:22 +0000 (12:05 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 25 Oct 2018 11:20:18 +0000 (12:20 +0100)
commitb352ceb6b4fc9f026944d307704076d1e6894de9
tree4898f1ba39b611a7fb9b609ef042c03e44848759
parent50db9ef4c014d28dd64b2d660b043a40224a1a27
gdb/python: Make convert_values_to_python return gdbpy_ref<>

Make convert_values_to_python return a gdbpy_ref<> directly rather
than building a gdbpy_ref<>, releasing it, and then having a new
gdbpy_ref<> created to hold the result.

I also added a header comment to convert_values_to_python.

gdb/ChangeLog:

* python/py-function.c (convert_values_to_python): Return
gdbpy_ref<>. Add header comment.
(fnpy_call): Adjust.
gdb/ChangeLog
gdb/python/py-function.c