Make the windows-nat.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:21:47 +0000 (11:21 +0000)
commit51a9c8c5f8931d601a67494e8a65450083b35f92
tree6d692a1ccd4dbcfecf22c4b3587679336333f85a
parent5893c83a47db6f00e183a271f3b330dcd8efd069
Make the windows-nat.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.

Tested by cross building on Fedora 17, and then confirming that

./gdb.exe ./gdb.exe -ex "set pagination off" -ex "start"

under Wine still works.

Also, Joel tested this with Adacore's internal testsuite.

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

* windows-nat.c: Include inf-child.h.
(windows_ops): Delete global.
(windows_open, windows_prepare_to_store, windows_can_run): Delete
methods.
(init_windows_ops): Delete function.
(windows_target): New function, based on init_windows_ops, but
inherit inf_child_target.
(_initialize_windows_nat): Use windows_target.  Install x86
specific target methods here.
gdb/ChangeLog
gdb/windows-nat.c
This page took 0.034455 seconds and 4 git commands to generate.