Make the nto-procfs.c target inherit inf-child.c.
authorPedro Alves <palves@redhat.com>
Wed, 12 Mar 2014 11:21:36 +0000 (11:21 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 12 Mar 2014 11:24:41 +0000 (11:24 +0000)
commitee8e9165af41505e5b33397afdbe5c424d5aa52c
tree16b731f668a48eee950d2357a27a99f12eea261d
parent51a9c8c5f8931d601a67494e8a65450083b35f92
Make the nto-procfs.c target inherit inf-child.c.

So that all native targets inherit a single "superclass".

Target methods that are set to or do the same as inf-child.c's are
removed.

Not tested.

gdb/
2014-03-12  Pedro Alves  <palves@redhat.com>

* nto-procfs.c: Include inf-child.h.
(procfs_ops): Delete global.
(procfs_can_run): Delete method.
(procfs_detach, procfs_mourn_inferior): Unpush the passed in
target pointer instead of referencing procfs_ops.
(procfs_prepare_to_store): Delete.
(init_procfs_ops): Delete function.
(procfs_target): New function, based on init_procfs_ops, but
inherit inf_child_target.
(_initialize_procfs): Use procfs_target.
gdb/ChangeLog
gdb/nto-procfs.c