summaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2016-09-27 16:21:48 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2016-10-06 17:00:53 -0400
commit1fb77080fd74d11c0dbccf812ed98ffa0b3edc4e (patch)
tree0738b8df2d734c657aca3bd8b3fb70404ed0b4bc /gdb/target.h
parentddb6d633875b76f9d772af901118233fc498253a (diff)
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.h')
-rw-r--r--gdb/target.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/target.h b/gdb/target.h
index b458970c1a..176f332931 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1380,12 +1380,6 @@ struct address_space *target_thread_address_space (ptid_t);
int target_info_proc (const char *, enum info_proc_what);
-/* Returns true if this target can debug multiple processes
- simultaneously. */
-
-#define target_supports_multi_process() \
- (*current_target.to_supports_multi_process) (&current_target)
-
/* Returns true if this target can disable address space randomization. */
int target_supports_disable_randomization (void);