binutils-gdb/gdb/nat
Simon Marchi 4d9b86e175 Make linux_ptrace_attach_fail_reason return an std::string
This patch makes linux_ptrace_attach_fail_reason and
linux_ptrace_attach_fail_reason_string return std::string.  It also
replaces usages of struct buffer with std::string.  This allows getting
rid of a cleanup in in linux_ptrace_attach_fail_reason_string and
simplifies the code in general.

Something that looks odd to me is that in
linux_ptrace_attach_fail_reason, if the two messages are appended, there
is no separating space or \n, so the result won't be very nice.  I left
it as-is for now though.

gdb/ChangeLog:

	* nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
	std::string.
	(linux_ptrace_attach_fail_reason_string): Likewise.
	* nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
	Likewise.
	(linux_ptrace_attach_fail_reason_string): Likewise.
	* linux-nat.c (attach_proc_task_lwp_callback): Adjust.

gdb/gdbserver/ChangeLog:

	* linux-low.c (attach_proc_task_lwp_callback): Adjust to
	linux_ptrace_attach_fail_reason_string now returning an
	std::string.
	(linux_attach): Likewise.
	* thread-db.c (attach_thread): Likewise.
2018-01-17 12:34:50 -05:00
..
aarch64-linux-hw-point.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
aarch64-linux-hw-point.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
aarch64-linux.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
aarch64-linux.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04: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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04: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 Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-btrace.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-btrace.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04: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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-procfs.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
linux-ptrace.c Make linux_ptrace_attach_fail_reason return an std::string 2018-01-17 12:34:50 -05:00
linux-ptrace.h Make linux_ptrace_attach_fail_reason return an std::string 2018-01-17 12:34:50 -05: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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ppc-linux.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-cpuid.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-dregs.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-dregs.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04: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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04: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