]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Consolidate API of target_supports_multi_process
authorSergio Durigan Junior <sergiodj@redhat.com>
Tue, 27 Sep 2016 20:21:48 +0000 (16:21 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 6 Oct 2016 21:00:53 +0000 (17:00 -0400)
commit1fb77080fd74d11c0dbccf812ed98ffa0b3edc4e
tree0738b8df2d734c657aca3bd8b3fb70404ed0b4bc
parentddb6d633875b76f9d772af901118233fc498253a
Consolidate API of target_supports_multi_process

This simple commit consolidates the API of
target_supports_multi_process.  Since both GDB and gdbserver use the
same function prototype, all that was needed was to move create this
prototype on gdb/target/target.h and turn the macros declared on
gdb/{,gdbserver/}target.h into actual functions.

Regtested (clean pass) on the BuildBot.

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

* target.c (target_supports_multi_process): New function, moved
from...
* target.h (target_supports_multi_process): ... here.  Remove
macro.
* target/target.h (target_supports_multi_process): New prototype.

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

* target.c (target_supports_multi_process): New function, moved
from...
* target.h (target_supports_multi_process): ... here.  Remove
macro.
gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/target.c
gdb/gdbserver/target.h
gdb/target.c
gdb/target.h
gdb/target/target.h