binutils-gdb/gdb/nat
Adhemerval Zanella 754653a7c0 Sync proc_service definition with GLIBC
GLIBC BZ#20311 [1] proc_service.h install patch also remove 'const'
attributes from ps_get_thread_area and comment #15 discuss why to remove
the const attribute (basically since it a callback with the struct
ps_prochandle owned by the client it should be able to modify it if
it the case).

On default build this is not the issue and current g++ does not trigger
any issue with this mismatch declaration.  However, on some bootstrap
build configuration where gdbserver is build with gcc instead this
triggers:

error: conflicting types for 'ps_get_thread_area'

This patch fixes it by syncing the declaration with GLIBC.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=20311

gdb/ChangeLog:

2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>

	* aarch64-linux-nat.c (ps_get_thread_area): Remove const from
	struct ps_prochandle.
	* amd64-linux-nat.c (ps_get_thread_area): Likewise.
	* arm-linux-nat.c (ps_get_thread_area): Likewise.
	* gdb_proc_service.h (ps_get_thread_area): Likewise.
	* i386-linux-nat.c (ps_get_thread_area): Likewise.
	* m68klinux-nat.c (ps_get_thread_area): Likewise.
	* mips-linux-nat.c (ps_get_thread_area): Likewise.
	* nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
	* nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
	* xtensa-linux-nat.c (ps_get_thread_area): Likewise.

gdb/gdbserver/ChangeLog:

2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>

	PR server/20491
	* gdb_proc_service.h (ps_get_thread_area): Remove const from struct
	ps_prochandle.
	* linux-aarch64-low.c (ps_get_thread_area): Likewise.
	* linux-arm-low.c (ps_get_thread_area): Likewise.
	* linux-crisv32-low.c (ps_get_thread_area): Likewise.
	* linux-m68k-low.c (ps_get_thread_area): Likewise.
	* linux-mips-low.c (ps_get_thread_area): Likewise.
	* linux-nios2-low.c (ps_get_thread_area): Likewise.
	* linux-tic6x-low.c (ps_get_thread_area): Likewise.
	* linux-x86-low.c (ps_get_thread_area): Likewise.
	* linux-xtensa-low.c (ps_get_thread_area): Likewise.
2016-08-25 08:42:03 +01:00
..
aarch64-linux-hw-point.c Fix ARMv8.1/v8.2 for hw watchpoint and breakpoint 2016-07-23 10:10:32 -07:00
aarch64-linux-hw-point.h Fix ARMv8.1/v8.2 for hw watchpoint and breakpoint 2016-07-23 10:10:32 -07:00
aarch64-linux.c Sync proc_service definition with GLIBC 2016-08-25 08:42:03 +01:00
aarch64-linux.h Sync proc_service definition with GLIBC 2016-08-25 08:42:03 +01:00
amd64-linux-siginfo.c Fix PR gdb/20287 - x32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))" 2016-07-26 19:35:40 +01:00
amd64-linux-siginfo.h Adaptation of siginfo fixup for the new bnd fields 2016-02-02 12:02:16 +01:00
gdb_ptrace.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_thread_db.h Remove unused libthread_db td_thr_validate reference 2016-05-23 13:26:47 +01: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 Remove trademark acknowledgements throughout 2016-01-12 15:03:11 +00:00
linux-btrace.h Remove trademark acknowledgements throughout 2016-01-12 15:03:11 +00:00
linux-namespaces.c Fix gdbserver build failure on targets without fork 2016-01-18 11:39:42 +00:00
linux-namespaces.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-nat.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-osdata.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-osdata.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-personality.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-personality.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-procfs.c linux-procfs: Handle lowercase "t (tracing stop)" state 2016-07-25 12:58:38 +01:00
linux-procfs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-ptrace.c Fix fallout from gdb/20413's fix (x32: linux_ptrace_test_ret_to_nx: Cannot PTRACE_PEEKUSER) 2016-08-11 12:01:22 +01:00
linux-ptrace.h MIPS/Linux: Also recognize TRAP_BRKPT and TRAP_HWBKPT 2016-04-15 23:52:00 +01:00
linux-waitpid.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-waitpid.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-linux-watch.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-linux-watch.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ppc-linux.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ppc-linux.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-cpuid.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-dregs.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-dregs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-gcc-cpuid.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-linux-dregs.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-linux-dregs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-linux.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-linux.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00