* target.h (struct target_ops) <to_supports_multi_process>: New

field.
	(target_supports_multi_process): New define.
	* target.c (update_current_target): Inherit and de_fault
	to_supports_multi_process.
	* infcmd.c (attach_command): Allow attaching to multiple processes
	if the target supports it.
	(detach_command): If the target claims there is still execution,
	don't clear the thread list.
	* remote.c (remote_supports_multi_process): New.
	(init_remote_ops): Register remote_supports_multi_process.
This commit is contained in:
Pedro Alves
2008-10-27 12:43:24 +00:00
parent 676e87b308
commit 8a30517206
5 changed files with 46 additions and 2 deletions

View File

@@ -8554,6 +8554,13 @@ remote_supports_non_stop (void)
return 1;
}
static int
remote_supports_multi_process (void)
{
struct remote_state *rs = get_remote_state ();
return remote_multi_process_p (rs);
}
static void
init_remote_ops (void)
{
@@ -8616,6 +8623,7 @@ Specify the serial device it is connected to\n\
remote_ops.to_terminal_inferior = remote_terminal_inferior;
remote_ops.to_terminal_ours = remote_terminal_ours;
remote_ops.to_supports_non_stop = remote_supports_non_stop;
remote_ops.to_supports_multi_process = remote_supports_multi_process;
}
/* Set up the extended remote vector by making a copy of the standard