gdb/guile: Have gdbscm_safe_source_script return a unique_ptr
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 5 May 2021 20:39:06 +0000 (21:39 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 7 May 2021 08:53:50 +0000 (09:53 +0100)
commit9589edb8366d9cf670dbfeeea355337c8b32e6d4
tree42e357cfec744611782cd2798e4a558474704305
parent4896932e620876a1afa1c9e8d2b8a5e49aa53d53
gdb/guile: Have gdbscm_safe_source_script return a unique_ptr

Change gdbscm_safe_source_script to return a
gdb::unique_xmalloc_ptr<char> instead of a raw char*.  Update the
users of this function.

There should be no user visible change after this commit.

gdb/ChangeLog:

* guile/guile-internal.h (gdbscm_safe_source_script): Change
function return type.
* guile/guile.c (gdbscm_source_script): Update to handle change in
gdbscm_safe_source_script.
* guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
* guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
type.
gdb/ChangeLog
gdb/guile/guile-internal.h
gdb/guile/guile.c
gdb/guile/scm-objfile.c
gdb/guile/scm-safe-call.c