Share target_wait prototype between GDB and gdbserver
authorSergio Durigan Junior <sergiodj@redhat.com>
Mon, 29 Aug 2016 03:39:45 +0000 (23:39 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 1 Sep 2016 18:55:15 +0000 (14:55 -0400)
commitf2b9e3dfd4bc3c5149496fdbeaa5f0907220685f
tree7478f04b0d2ec5dbbda6985fe74e8ea3d70d18ae
parent049a857091cff98371b5688140832a3cf767153c
Share target_wait prototype between GDB and gdbserver

This commit moves the target_wait prototype from the GDB-specific
target.h header to the common target/target.h header.  Then, it
creates a compatible implementation of target_wait on gdbserver using
the_target->wait, and adjusts the (only) caller (mywait function).

Pretty straightforward, no regressions introduced.

gdb/gdbserver/ChangeLog:
2016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>

* target.c (mywait): Call target_wait instead of
the_target->wait.
(target_wait): New function.

gdb/ChangeLog:
2016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>

* target.c (target_wait): Mention that the function's prototype
can be found at target/target.h.
* target.h (target_wait): Move prototype from here...
* target/target.h (target_wait): ... to here.
gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/target.c
gdb/target.c
gdb/target.h
gdb/target/target.h