+2008-02-19 Pedro Alves <pedro@codesourcery.com>
+
+ * gdb.texinfo (vAttach, vRun): Remove requirement of the stub
+ killing the inferior when it is already debugging a process.
+
2008-02-13 Markus Deuling <deuling@de.ibm.com>
* gdbint.texinfo (Build Script): New section. Mention new build script
@item vAttach;@var{pid}
@cindex @samp{vAttach} packet
Attach to a new process with the specified process ID. @var{pid} is a
-hexadecimal integer identifying the process. If the stub is currently
-controlling a process, it is killed. The attached process is stopped.
+hexadecimal integer identifying the process. The attached process is
+stopped.
This packet is only available in extended mode (@pxref{extended mode}).
command line. The file and arguments are hex-encoded strings. If
@var{filename} is an empty string, the stub may use a default program
(e.g.@: the last program run). The program is created in the stopped
-state. If the stub is currently controlling a process, it is killed.
+state.
This packet is only available in extended mode (@pxref{extended mode}).
+2008-02-19 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_v_requests): When handling the vRun and vAttach
+ packets, if already debugging a process, don't kill it. Return an
+ error instead.
+
2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
* server.c (handle_query): Correct length check.
{
if (target_running ())
{
- fprintf (stderr, "Killing inferior\n");
- kill_inferior ();
+ fprintf (stderr, "Already debugging a process\n");
+ write_enn (own_buf);
+ return;
}
handle_v_attach (own_buf, status, signal);
return;
{
if (target_running ())
{
- fprintf (stderr, "Killing inferior\n");
- kill_inferior ();
+ fprintf (stderr, "Already debugging a process\n");
+ write_enn (own_buf);
+ return;
}
handle_v_run (own_buf, status, signal);
return;