diff options
author | Pedro Alves <palves@redhat.com> | 2011-03-08 12:46:52 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-03-08 12:46:52 +0000 |
commit | 63154eca7b36effea83973fe140981e5b7f83428 (patch) | |
tree | f431738e255e45e7650d2f1797f6225d5d91ddbb /gdb | |
parent | f1a507a15eef00a452f75c8be0f8a39e97a3f244 (diff) | |
download | gdb-63154eca7b36effea83973fe140981e5b7f83428.zip gdb-63154eca7b36effea83973fe140981e5b7f83428.tar.gz gdb-63154eca7b36effea83973fe140981e5b7f83428.tar.bz2 |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 11 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.server/ext-run.exp | 5 |
4 files changed, 25 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 135a161..05d8314 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-08 Pedro Alves <pedro@codesourcery.com> + + * remote.c (remote_check_symbols): Skip if the target has no + execution. + 2011-03-08 Joel Brobecker <brobecker@adacore.com> * target.c (read_whatever_is_readable): Reformat comment, diff --git a/gdb/remote.c b/gdb/remote.c index 8c4176c..3034e61 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, diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e5092b1..6ff5c10 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> + + * gdb.server/ext-run.exp + (load new file without any gdbserver inferior): New test. + 2011-03-07 Tom Tromey <tromey@redhat.com> * Makefile.in (TAGS): Rewrite. diff --git a/gdb/testsuite/gdb.server/ext-run.exp b/gdb/testsuite/gdb.server/ext-run.exp index f54f91d..b930527 100644 --- a/gdb/testsuite/gdb.server/ext-run.exp +++ b/gdb/testsuite/gdb.server/ext-run.exp @@ -60,4 +60,9 @@ if { [istarget *-*-linux*] } { } gdb_test "kill" "" "kill" "Kill the program being debugged.*" "y" + +gdb_load $binfile +gdb_test "monitor help" "The following monitor commands.*" \ + "load new file without any gdbserver inferior" + gdb_test_no_output "monitor exit" |