diff options
author | Pedro Alves <pedro@codesourcery.com> | 2011-03-08 12:46:50 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2011-03-08 12:46:50 +0000 |
commit | ad726b2e37bf67fc1545b496310c62dab216fa86 (patch) | |
tree | a2379e7202c61d2d1c3424aa7a9666e5e5618655 /gdb/remote.c | |
parent | a8a24381ad7d678a1407c5aac0119fe6f2bb44d5 (diff) | |
download | gdb-ad726b2e37bf67fc1545b496310c62dab216fa86.tar.gz |
gdb/
2011-03-08 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_check_symbols): Skip if the target has no
execution.
gdb/testsuite/
2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.server/ext-run.exp
(load new file without any gdbserver inferior): New test.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 8c4176c93e3..3034e618b93 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3435,10 +3435,19 @@ remote_check_symbols (struct objfile *objfile) struct minimal_symbol *sym; int end; + /* The remote side has no concept of inferiors that aren't running + yet, it only knows about running processes. If we're connected + but our current inferior is not running, we should not invite the + remote target to request symbol lookups related to its + (unrelated) current process. */ + if (!target_has_execution) + return; + if (remote_protocol_packets[PACKET_qSymbol].support == PACKET_DISABLE) return; - /* Make sure the remote is pointing at the right process. */ + /* Make sure the remote is pointing at the right process. Note + there's no way to select "no process". */ set_general_process (); /* Allocate a message buffer. We can't reuse the input buffer in RS, |