From 1fb77080fd74d11c0dbccf812ed98ffa0b3edc4e Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 27 Sep 2016 16:21:48 -0400 Subject: 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 * 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 * target.c (target_supports_multi_process): New function, moved from... * target.h (target_supports_multi_process): ... here. Remove macro. --- gdb/target/target.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/target') diff --git a/gdb/target/target.h b/gdb/target/target.h index be41fa7..2f4c716 100644 --- a/gdb/target/target.h +++ b/gdb/target/target.h @@ -90,4 +90,9 @@ extern ptid_t target_wait (ptid_t ptid, struct target_waitstatus *status, extern void target_mourn_inferior (ptid_t ptid); +/* Return 1 if this target can debug multiple processes + simultaneously, zero otherwise. */ + +extern int target_supports_multi_process (void); + #endif /* TARGET_COMMON_H */ -- cgit v1.1