More procfs.c simplification
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: 2018-05-02 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.
This commit is contained in:
parent
b5c8fcb1b4
commit
c1955e1792
5 changed files with 15 additions and 24 deletions
|
@ -97,12 +97,3 @@ fill_fpregset (const struct regcache *regcache,
|
|||
{
|
||||
sparc_collect_fpregset (&sparc_sol2_fpregmap, regcache, regnum, fpregs);
|
||||
}
|
||||
|
||||
void
|
||||
_initialize_sparc_sol2_nat (void)
|
||||
{
|
||||
struct target_ops *t;
|
||||
|
||||
t = procfs_target ();
|
||||
add_target (t);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue