This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 2/8] [PowerPC] Consolidate wordsize getter between native and gdbserver
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: pedromfc at linux dot vnet dot ibm dot com (Pedro Franco de Carvalho)
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 22 May 2018 14:42:54 +0200 (CEST)
- Subject: Re: [PATCH v2 2/8] [PowerPC] Consolidate wordsize getter between native and gdbserver
Pedro Franco de Carvalho wrote:
> gdb/ChangeLog:
> yyyy-mm-dd 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:
> yyyy-mm-dd 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.
This is OK.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com