+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,
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,
+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.
}
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"