binutils-gdb/gdb/python
Tom Tromey 075c55e0cc Remove more calls to xfree from Python
This changes the Python code to remove some more calls to xfree, in
favor of self-managing data structures.

Tested on x86-64 Fedora 28.

gdb/ChangeLog
2018-12-27  Tom Tromey  <tom@tromey.com>

	* python/python.c (python_interactive_command): Use std::string.
	(gdbpy_parameter): Likewise.
	* python/py-utils.c (unicode_to_encoded_string): Update comment.
	* python/py-symtab.c (salpy_str): Use PyString_FromFormat.
	* python/py-record-btrace.c (recpy_bt_insn_data): Use
	byte_vector.
	* python/py-objfile.c (objfpy_get_build_id): Use
	unique_xmalloc_ptr.
	* python/py-inferior.c (infpy_read_memory): Use
	unique_xmalloc_ptr.
	* python/py-cmd.c (gdbpy_parse_command_name): Use std::string.
2018-12-27 10:50:43 -07:00
..
lib/gdb Fix output indentation for "info pretty-printers" 2018-11-08 16:17:01 -07:00
py-all-events.def
py-arch.c
py-auto-load.c
py-block.c
py-bpevent.c
py-breakpoint.c Return gdbpy_ref from some Python string functions 2018-11-04 08:01:01 -07:00
py-cmd.c Remove more calls to xfree from Python 2018-12-27 10:50:43 -07: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
py-frame.c
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c Remove more calls to xfree from Python 2018-12-27 10:50:43 -07: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 Remove more calls to xfree from Python 2018-12-27 10:50:43 -07:00
py-param.c
py-prettyprint.c Return gdbpy_ref from gdbpy_get_varobj_pretty_printer 2018-11-04 08:01:01 -07:00
py-progspace.c Return gdbpy_ref from some Python string functions 2018-11-04 08:01:01 -07:00
py-record-btrace.c Remove more calls to xfree from Python 2018-12-27 10:50:43 -07: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 Remove more calls to xfree from Python 2018-12-27 10:50:43 -07:00
py-threadevent.c
py-type.c
py-unwind.c
py-utils.c Remove more calls to xfree from Python 2018-12-27 10:50:43 -07:00
py-value.c Use gdb:array_view in call_function_by_hand & friends 2018-11-21 11:55:11 +00:00
py-varobj.c
py-xmethods.c invoke_xmethod & array_view 2018-11-21 12:06:20 +00:00
python-config.py
python-internal.h Return gdbpy_ref from gdbpy_get_varobj_pretty_printer 2018-11-04 08:01:01 -07:00
python.c Remove more calls to xfree from Python 2018-12-27 10:50:43 -07:00
python.h