gdb/python: Make cmdpy_completer_helper return gdbpy_ref<>
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 10 Sep 2018 10:48:28 +0000 (11:48 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 25 Oct 2018 11:20:18 +0000 (12:20 +0100)
commit50db9ef4c014d28dd64b2d660b043a40224a1a27
treef64ad1681c392316ec8acd457a6aaf343ebb0207
parentee67fd7f3f6ca78eede2862e309c0bcf266bbd7e
gdb/python: Make cmdpy_completer_helper return gdbpy_ref<>

Make cmdpy_completer_helper 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.

gdb/ChangeLog:

* python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
(cmdpy_completer_handle_brkchars): Adjust.
(cmdpy_completer): Adjust.
gdb/ChangeLog
gdb/python/py-cmd.c