This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] More procfs.c simplification
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 3 May 2018 00:58:09 +0100
- Subject: Re: [PATCH] More procfs.c simplification
- References: <20180412165934.27722-1-palves@redhat.com>
On 04/12/2018 05:59 PM, Pedro Alves wrote:
> There are only two architectures using procfs.c (i386/SPARC), and none
> of their corresponding nat files overrides any target method. Move
> the add_target calls to procfs.c directly.
>
> gdb/ChangeLog:
> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>
> * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
> procfs_target/add_target here.
> * procfs.c (procfs_target): Make static.
> (_initialize_procfs): Call add_target here.
> * procfs.h (struct target_ops): Remove forward declaration.
> (procfs_target): Remove declaration.
> * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
I pushed this one in too.
Thanks,
Pedro Alves