From f2b9e3dfd4bc3c5149496fdbeaa5f0907220685f Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sun, 28 Aug 2016 23:39:45 -0400 Subject: 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 * target.c (mywait): Call target_wait instead of the_target->wait. (target_wait): New function. gdb/ChangeLog: 2016-09-01 Sergio Durigan Junior * 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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 60b5950..08509fb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2016-09-01 Sergio Durigan Junior + * 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. + +2016-09-01 Sergio Durigan Junior + * fork-child.c (startup_inferior): Replace calls to target_resume by target_continue{,_no_signal}, depending on the case. * linux-nat.c (cleanup_target_stop): Call -- cgit v1.1