Use unique_xmalloc_ptr for read_string
authorTom Tromey <tom@tromey.com>
Mon, 21 May 2018 18:35:59 +0000 (12:35 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 18 Jun 2018 18:51:02 +0000 (12:51 -0600)
commitb4be9fadea469e2c937c81a8f1d3243206f9bcfc
tree7ffa8ba6e9cc9c630d8775e71e30963d390e53c6
parent3f0dbd670b59aade6224aadcbc3a1943a4645a68
Use unique_xmalloc_ptr for read_string

This changes read_string's "buffer" out-parameter to be a
unique_xmalloc_ptr, then updates the users.  This allows for the
removal of some cleanups.

I chose unique_xmalloc_ptr rather than byte_vector here due to the way
Guile unwinding seems to work.

Tested by the buildbot.

gdb/ChangeLog
2018-06-18  Tom Tromey  <tom@tromey.com>

* valprint.h (read_string): Update.
* valprint.c (read_string): Change type of "buffer".
(val_print_string): Update.
* python/py-value.c (valpy_string): Update.
* language.h (struct language_defn) <la_get_string>: Change
type of "buffer".
(default_get_string, c_get_string): Update.
* language.c (default_get_string): Change type of "buffer".
* guile/scm-value.c (gdbscm_value_to_string): Update.
* c-lang.c (c_get_string): Change type of "buffer".
gdb/ChangeLog
gdb/c-lang.c
gdb/guile/scm-value.c
gdb/language.c
gdb/language.h
gdb/python/py-value.c
gdb/valprint.c
gdb/valprint.h
This page took 0.031842 seconds and 4 git commands to generate.