diff options
author | Pedro Alves <palves@redhat.com> | 2009-06-19 13:35:35 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-06-19 13:35:35 +0000 |
commit | cf8fd78b3890f7c0a8050f7dc6cefaa8918374f9 (patch) | |
tree | 87acb8302fad51432a54c125a357661c2a7666c3 /gdb/gdbserver/linux-low.c | |
parent | 5e7c27a6076edbd535b3988449c0f24b40ac2371 (diff) | |
download | gdb-cf8fd78b3890f7c0a8050f7dc6cefaa8918374f9.zip gdb-cf8fd78b3890f7c0a8050f7dc6cefaa8918374f9.tar.gz gdb-cf8fd78b3890f7c0a8050f7dc6cefaa8918374f9.tar.bz2 |
2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
Pedro Alves <pedro@codesourcery.com>
* target.h (struct target_ops) <supports_multi_process>: New
callback.
(target_supports_multi_process): New.
* server.c (handle_query): Even if GDB reports support, only
enable multi-process if the target also supports it. Report
multi-process support only if the target backend supports it.
* linux-low.c (linux_supports_multi_process): New function.
(linux_target_ops): Install it as target_supports_multi_process
callback.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 9af9e6e..21bf523 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -3008,6 +3008,12 @@ linux_start_non_stop (int nonstop) return 0; } +static int +linux_supports_multi_process (void) +{ + return 1; +} + static struct target_ops linux_target_ops = { linux_create_inferior, linux_attach, @@ -3045,6 +3051,7 @@ static struct target_ops linux_target_ops = { linux_supports_non_stop, linux_async, linux_start_non_stop, + linux_supports_multi_process }; static void |