+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.
+
2016-10-06 Pedro Alves <palves@redhat.com>
* cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
+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.
+
2016-10-05 Tom Tromey <tom@tromey.com>
PR remote/20655:
(*the_target->resume) (&resume_info, 1);
}
+/* See target/target.h. */
+
+int
+target_supports_multi_process (void)
+{
+ return (the_target->supports_multi_process != NULL ?
+ (*the_target->supports_multi_process) () : 0);
+}
+
int
start_non_stop (int nonstop)
{
#define target_async(enable) \
(the_target->async ? (*the_target->async) (enable) : 0)
-#define target_supports_multi_process() \
- (the_target->supports_multi_process ? \
- (*the_target->supports_multi_process) () : 0)
-
#define target_process_qsupported(features, count) \
do \
{ \
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)
{
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) (¤t_target)
-
/* Returns true if this target can disable address space randomization. */
int target_supports_disable_randomization (void);
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 */