Return unique_xmalloc_ptr from gdbscm_scm_to_string
authorTom Tromey <tom@tromey.com>
Sun, 27 May 2018 05:34:02 +0000 (23:34 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 17 Jul 2018 19:21:48 +0000 (13:21 -0600)
commitc6c6149af440c3032eb7d02c2852907c61aac470
treec2f5e25dc0448ab794d148ccea81afd71fb0d248
parenta1a31cb8dce7d1bfa7878dc08c28af330ef2ed69
Return unique_xmalloc_ptr from gdbscm_scm_to_string

This changes gdbscm_scm_to_string to return a unique_xmalloc_ptr and
then fixes all the callers.  This allows for the removal of some
cleanups.

gdb/ChangeLog
2018-07-17  Tom Tromey  <tom@tromey.com>

* guile/scm-param.c (pascm_set_func, pascm_show_func)
(compute_enum_list, pascm_set_param_value_x)
(gdbscm_parameter_value): Update.
* guile/guile-internal.h (gdbscm_scm_to_string): Update.
(gdbscm_scm_to_host_string): Update.
* guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
Update.
* guile/scm-cmd.c (cmdscm_add_completion): Update.
* guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
* guile/scm-string.c (gdbscm_scm_to_string): Return
unique_xmalloc_ptr.
(gdbscm_scm_to_host_string): Likewise.
gdb/ChangeLog
gdb/guile/guile-internal.h
gdb/guile/scm-cmd.c
gdb/guile/scm-math.c
gdb/guile/scm-param.c
gdb/guile/scm-pretty-print.c
gdb/guile/scm-string.c