summaryrefslogtreecommitdiff
path: root/gdb/procfs.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-05-03 00:37:07 +0100
committerPedro Alves <palves@redhat.com>2018-05-03 00:47:01 +0100
commitc1955e179201e76330a10c400bfa92cab2afbee0 (patch)
treea0b3134f992412024690bf9d96026a59b0b0e624 /gdb/procfs.h
parentb5c8fcb1b40a61be5015b02e8cf456a56c258b5d (diff)
downloadbinutils-gdb-c1955e179201e76330a10c400bfa92cab2afbee0.tar.gz
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/procfs.h')
-rw-r--r--gdb/procfs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/procfs.h b/gdb/procfs.h
index beeb876a73e..e66c674282c 100644
--- a/gdb/procfs.h
+++ b/gdb/procfs.h
@@ -17,13 +17,6 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-struct target_ops;
-
-/* Create a prototype generic procfs target. The client can override
- it with local methods. */
-
-extern struct target_ops *procfs_target (void);
-
/* Return a ptid for which we guarantee we will be able to find a
'live' procinfo. */