diff options
author | Pedro Alves <palves@redhat.com> | 2018-05-03 00:37:07 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-05-03 00:47:01 +0100 |
commit | c1955e179201e76330a10c400bfa92cab2afbee0 (patch) | |
tree | a0b3134f992412024690bf9d96026a59b0b0e624 /gdb/i386-sol2-nat.c | |
parent | b5c8fcb1b40a61be5015b02e8cf456a56c258b5d (diff) | |
download | binutils-c1955e179201e76330a10c400bfa92cab2afbee0.zip binutils-c1955e179201e76330a10c400bfa92cab2afbee0.tar.gz binutils-c1955e179201e76330a10c400bfa92cab2afbee0.tar.bz2 |
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.
Diffstat (limited to 'gdb/i386-sol2-nat.c')
-rw-r--r-- | gdb/i386-sol2-nat.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/i386-sol2-nat.c b/gdb/i386-sol2-nat.c index 359fc32..992ecb7 100644 --- a/gdb/i386-sol2-nat.c +++ b/gdb/i386-sol2-nat.c @@ -133,11 +133,6 @@ fill_fpregset (const struct regcache *regcache, void _initialize_amd64_sol2_nat (void) { - struct target_ops *t; - - /* Fill in the generic procfs methods. */ - t = procfs_target (); - #if defined (PR_MODEL_NATIVE) && (PR_MODEL_NATIVE == PR_MODEL_LP64) amd64_native_gregset32_reg_offset = amd64_sol2_gregset32_reg_offset; amd64_native_gregset32_num_regs = @@ -146,6 +141,4 @@ _initialize_amd64_sol2_nat (void) amd64_native_gregset64_num_regs = ARRAY_SIZE (amd64_sol2_gregset64_reg_offset); #endif - - add_target (t); } |