diff options
author | Pedro Alves <palves@redhat.com> | 2008-10-27 12:43:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-10-27 12:43:24 +0000 |
commit | 8a305172062baab75e6a3c61c971153558245551 (patch) | |
tree | 9e396af11e2e0a3f87b003c6f154a7c518fd7414 /gdb/remote.c | |
parent | 676e87b3082eb253c4b3b7b2ce4ab4f3b241980d (diff) | |
download | gdb-8a305172062baab75e6a3c61c971153558245551.zip gdb-8a305172062baab75e6a3c61c971153558245551.tar.gz gdb-8a305172062baab75e6a3c61c971153558245551.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index da0a429..6af8267 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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 |