diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2016-09-27 16:21:48 -0400 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2016-10-06 17:00:53 -0400 |
commit | 1fb77080fd74d11c0dbccf812ed98ffa0b3edc4e (patch) | |
tree | 0738b8df2d734c657aca3bd8b3fb70404ed0b4bc /gdb/target.c | |
parent | ddb6d633875b76f9d772af901118233fc498253a (diff) | |
download | gdb-1fb77080fd74d11c0dbccf812ed98ffa0b3edc4e.zip gdb-1fb77080fd74d11c0dbccf812ed98ffa0b3edc4e.tar.gz gdb-1fb77080fd74d11c0dbccf812ed98ffa0b3edc4e.tar.bz2 |
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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c index b6a7e64..cb89e75 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2727,6 +2727,14 @@ target_supports_disable_randomization (void) return 0; } +/* See target/target.h. */ + +int +target_supports_multi_process (void) +{ + return (*current_target.to_supports_multi_process) (¤t_target); +} + char * target_get_osdata (const char *type) { |