binutils-gdb/gdb/python
Pedro Alves d721ba37d8 gdb: Make ldirname return a std::string
Eliminates several uses of cleanups.

Tested on x86_64 Fedora 23 with Python 2 and 3.

gdb/ChangeLog
2017-03-27  Pedro Alves  <palves@redhat.com>

	* dwarf2read.c (struct file_and_directory): New.
	(dwarf2_get_dwz_file): Adjust to use std::string.
	(dw2_get_file_names_reader): Adjust to use file_and_directory.
	(find_file_and_directory): Adjust to return a file_and_directory
	object.
	(read_file_scope): Adjust to use file_and_directory.  Remove
	make_cleanup/do_cleanups calls.
	(open_and_init_dwp_file): Adjust to use std::string.  Remove
	make_cleanup/do_cleanups calls.
	* python/python.c (do_start_initialization): Adjust to ldirname
	returning a std::string.
	* utils.c (ldirname): Now returns a std::string.
	* utils.h (ldirname): Change return type to std::string.
	* xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
	returning a std::string.
	* xml-tdesc.c (file_read_description_xml): Likewise.
2017-03-27 11:56:28 +01:00
..
lib/gdb Import sys in gdb/python/lib/gdb/printer/bound_registers.py 2017-03-22 11:22:07 +00:00
py-arch.c
py-auto-load.c
py-block.c
py-bpevent.c
py-breakpoint.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-cmd.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-continueevent.c
py-event.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-event.h
py-events.h PR python/13598 - add before_prompt event 2017-02-14 10:38:56 -07:00
py-evtregistry.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-evts.c PR python/13598 - add before_prompt event 2017-02-14 10:38:56 -07:00
py-exitedevent.c
py-finishbreakpoint.c
py-frame.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-infevents.c
py-infthread.c
py-lazy-string.c Fix various python lazy string bugs. 2017-03-16 09:28:11 -07:00
py-linetable.c Remove some gotos from Python 2017-02-10 12:24:34 -07:00
py-newobjfileevent.c
py-objfile.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-param.c
py-prettyprint.c Change one more spot to use gdbpy_ref 2017-02-10 12:24:33 -07:00
py-progspace.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-record-btrace.c Fix break on Python 2 2017-03-21 08:19:59 +01:00
py-record-btrace.h python: Implement btrace Python bindings for record history. 2017-02-14 10:57:56 +01:00
py-record-full.c python: Implement btrace Python bindings for record history. 2017-02-14 10:57:56 +01:00
py-record-full.h python: Implement btrace Python bindings for record history. 2017-02-14 10:57:56 +01:00
py-record.c python: Implement btrace Python bindings for record history. 2017-02-14 10:57:56 +01:00
py-ref.h
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c
py-symtab.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-threadevent.c
py-type.c Convert lvalue reference type check to general reference type check 2017-03-20 13:47:54 -07:00
py-unwind.c
py-utils.c
py-value.c Convert lvalue reference type check to general reference type check 2017-03-20 13:47:54 -07:00
py-varobj.c
py-xmethods.c Support rvalue references in the gdb python module (includes doc/) 2017-03-20 13:47:52 -07:00
python-config.py
python-internal.h python: Implement btrace Python bindings for record history. 2017-02-14 10:57:56 +01:00
python.c gdb: Make ldirname return a std::string 2017-03-27 11:56:28 +01:00
python.h