This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [remote/rfc] Let GDB know if a remote server originally attached to a process.
On Saturday 07 March 2009 14:20:00, Eli Zaretskii wrote:
> In that case, I suggest this text:
>
> Return an indication of whether the remote stub attached to an
> existing process or created a new process.
Sounds very good, thank you. Here's how it looks now:
@item qAttached:@var{pid}
@cindex query attached, remote request
@cindex @samp{qAttached} packet
Return an indication of whether the remote server attached to an
existing process or created a new process. When the multiprocess
protocol extensions are supported (@pxref{multiprocess extensions}),
@var{pid} is an integer in hexadecimal format identifying the target
process. Otherwise, @value{GDBN} will omit the @var{pid} field and
the query packet will be simplified as @samp{qAttached}.
This query is used, for example, to know whether the remote process
should be detached or killed when a @value{GDBN} session is ended with
the @code{quit} command.
Reply:
@table @samp
@item 1
The remote server attached to an existing process.
@item 0
The remote server created a new process.
@item E @var{NN}
A badly formed request or an error was encountered.
@end table
--
Pedro Alves