binutils-gdb/gdb/nat
Simon Marchi 528e15722b Replace some uses of xstrprintf with string_printf
This patch replaces some simple uses of xstrprintf with with
string_printf, removing the need to do manual memory freeing.

The change in ada-lang.c fixes an apparent memory leak.

Regtested on the buildbot.

gdb/ChangeLog:

	* common/filestuff.h (gdb_fopen_cloexec): New overload.
	(gdb_open_cloexec): Likewise.
	* nat/linux-osdata.c (command_from_pid): Use string_printf.
	(commandline_from_pid): Likewise.
	(linux_xfer_osdata_threads): Likewise.
	(linux_xfer_osdata_fds): Likewise.
	* ada-lang.c (is_package_name): Likewise.
	* auxv.c (procfs_xfer_auxv): Likewise.
	* breakpoint.c (print_one_breakpoint_location): Use
	uiout::field_fmt.
	(print_one_catch_solib): Use string_printf.
	* coff-pe-read.c (add_pe_exported_sym): Likewise.
	(add_pe_forwarded_sym): Likewise.
	* dwarf2read.c (create_type_unit_group): Likewise.
	(build_error_marker_type): Likewise.
	* infcall.c (get_function_name): Likewise.
	* valprint.c (print_converted_chars_to_obstack): Likewise.
	* xtensa-tdep.c (xtensa_register_type): Likewise.
2018-08-07 17:43:08 -04:00
..
aarch64-linux-hw-point.c Remove ptid_get_lwp 2018-07-03 11:36:43 -06:00
aarch64-linux-hw-point.h aarch64: PR 19806: watchpoints: false negatives + PR 20207 contiguous ones 2018-05-04 22:26:46 +02:00
aarch64-linux.c Remove ptid_get_lwp 2018-07-03 11:36:43 -06:00
aarch64-linux.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
aarch64-sve-linux-ptrace.c Remove some unused variables 2018-07-22 23:23:11 -04:00
aarch64-sve-linux-ptrace.h Fix up HAS_SVE_STATE macro 2018-06-22 12:01:18 +01:00
aarch64-sve-linux-sigcontext.h Add Aarch64 SVE compatibility macros 2018-06-18 10:02:56 +01:00
amd64-linux-siginfo.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
amd64-linux-siginfo.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
fork-inferior.c Remove pid_to_ptid 2018-07-03 11:36:42 -06:00
fork-inferior.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_ptrace.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_thread_db.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
glibc_thread_db.h
linux-btrace.c Remove ptid_get_lwp 2018-07-03 11:36:43 -06:00
linux-btrace.h btrace, gdbserver: remove the to_supports_btrace target method 2018-02-09 14:03:20 +01:00
linux-namespaces.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-namespaces.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-nat.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-osdata.c Replace some uses of xstrprintf with string_printf 2018-08-07 17:43:08 -04:00
linux-osdata.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-personality.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-personality.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-procfs.c Warn if /proc is not accessible 2018-07-04 16:13:29 +01:00
linux-procfs.h Warn if /proc is not accessible 2018-07-04 16:13:29 +01:00
linux-ptrace.c gdb: Fix ia64 defining TRAP_HWBKPT before including gdb_wait.h 2018-01-19 18:17:54 +00:00
linux-ptrace.h Fix Alpha native GDB build 2018-05-31 11:18:35 -04:00
linux-waitpid.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-waitpid.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mips-linux-watch.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mips-linux-watch.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ppc-linux.c [PowerPC] Consolidate wordsize getter between native and gdbserver 2018-05-22 11:52:02 -03:00
ppc-linux.h [PowerPC] Consolidate wordsize getter between native and gdbserver 2018-05-22 11:52:02 -03:00
x86-cpuid.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-dregs.c Fix "fall through" comments 2018-05-04 22:04:46 -06:00
x86-dregs.h Implement "to_stopped_by_hw_breakpoint" for x86 debug registers. 2018-03-03 21:25:33 -08:00
x86-gcc-cpuid.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-linux-dregs.c Remove ptid_lwp_p 2018-07-03 11:36:45 -06:00
x86-linux-dregs.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-linux.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-linux.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00