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/target.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/target.c')
-rw-r--r-- | gdb/target.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c index b5cad35..0976ad1 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -471,6 +471,7 @@ update_current_target (void) /* Do not inherit to_read_description. */ INHERIT (to_get_ada_task_ptid, t); /* Do not inherit to_search_memory. */ + INHERIT (to_supports_multi_process, t); INHERIT (to_magic, t); /* Do not inherit to_memory_map. */ /* Do not inherit to_flash_erase. */ @@ -638,6 +639,9 @@ update_current_target (void) de_fault (to_get_ada_task_ptid, (ptid_t (*) (long, long)) default_get_ada_task_ptid); + de_fault (to_supports_multi_process, + (int (*) (void)) + return_zero); #undef de_fault /* Finally, position the target-stack beneath the squashed |