binutils-gdb/gdb/python
Tom Tromey b4be9fadea 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".
2018-06-18 12:51:02 -06:00
..
lib/gdb
py-all-events.def
py-arch.c
py-auto-load.c
py-block.c
py-bpevent.c
py-breakpoint.c Allow breakpoint commands to be set from Python 2018-05-04 15:58:09 -06:00
py-cmd.c Change Python code to use new_reference 2018-04-30 11:33:12 -06:00
py-continueevent.c
py-event-types.def
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
py-frame.c
py-framefilter.c Remove some uses of is_mi_like_p from py-framefilter.c 2018-04-30 12:59:04 -06:00
py-function.c
py-gdb-readline.c
py-inferior.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
py-infevents.c
py-infthread.c
py-instruction.c
py-instruction.h
py-lazy-string.c
py-linetable.c
py-newobjfileevent.c
py-objfile.c
py-param.c Fix "set" handling of Python parameters 2018-05-31 15:02:01 -06:00
py-prettyprint.c
py-progspace.c
py-record-btrace.c btrace: set/show record btrace cpu 2018-04-13 11:35:55 +02:00
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c
py-record.h
py-ref.h
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c
py-symtab.c
py-threadevent.c
py-type.c Remove a static buffer from cp-name-parser.y 2018-06-01 10:46:47 -06:00
py-unwind.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
py-utils.c
py-value.c Use unique_xmalloc_ptr for read_string 2018-06-18 12:51:02 -06:00
py-varobj.c
py-xmethods.c
python-config.py configure uses incorrect link order when testing libpython 2018-05-04 10:08:09 -04:00
python-internal.h Add basic Python API for convenience variables 2018-05-31 15:00:40 -06:00
python.c Fix build issue with Python 3.7 2018-06-08 13:32:03 -04:00
python.h