binutils-gdb/gdb/nat
Pedro Franco de Carvalho 2e077f5e67 [PowerPC] Consolidate wordsize getter between native and gdbserver
This patch moves the native target wordsize getter for ppc linux to
nat/ so that it can be used to simplify ppc_arch_setup in
gdbserver. The ptrace call used to get MSR for this is ultimately the
same as before, but it is no longer necessary to create a temporary
regcache to call fetch_inferior_registers.

gdb/ChangeLog:
2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>

	* configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
	* ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
	nat/ppc-linux.c.
	(ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
	ppc_linux_target_wordsize with tid.
	(ppc_linux_nat_target::read_description): Call ppc_linux_target
	wordsize with tid.
	* nat/ppc-linux.c: Include nat/gdb_ptrace.h.
	(ppc64_64bit_inferior_p): Add static and inline specifiers.
	(ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
	tid parameter. Remove static specifier.
	* nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
	(ppc_linux_target_wordsize): New declaration.

gdb/gdbserver/ChangeLog:
2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>

	* linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
	wordsize of the inferior. Call ppc_linux_target_wordsize.
2018-05-22 11:52:02 -03:00
..
aarch64-linux-hw-point.c aarch64: PR 19806: watchpoints: false negatives + PR 20207 contiguous ones 2018-05-04 22:26:46 +02: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 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 btrace: check perf_event_paranoid 2018-02-09 14:03:21 +01: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 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 gdb: Fix ia64 defining TRAP_HWBKPT before including gdb_wait.h 2018-01-19 18:17:54 +00:00
linux-ptrace.h gdb: Fix ia64 defining TRAP_HWBKPT before including gdb_wait.h 2018-01-19 18:17:54 +00: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 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