This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: (gdb) target remote |foo-elf-sid --stdio
- From: Ben Elliston <bje at redhat dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: sid at sources dot redhat dot com
- Date: Thu, 18 Apr 2002 12:51:43 -0400 (EDT)
- Subject: Re: (gdb) target remote |foo-elf-sid --stdio
- References: <3CBEBC77.6090205@cygnus.com>
>>>>> "Andrew" == Andrew Cagney <ac131313@cygnus.com> writes:
Andrew> GDB's remote command supports a pipe mode (it's supported it for some
Andrew> years now). It lets GDB communicate with a sub-process using the remote
Andrew> protocol via that processes stdin/stdout. The command syntax is:
Andrew> (gdb) target remote |command to run with arguments
Andrew> Can SID be modified to support this mode? It is easier to script then
Andrew> the current: start sid; start gdb; connect.
Yes. In fact, I believe it was done once as a proof of concept.
Naturally, the standard input/output from a process emulation
component would need to be diverted to a Tk terminal window or some
other location so that it doesn't get interleaved with GDB protocol
chatter.
Andrew> (PS: As always, there could be teething problems in GDB)
Agreed.
Ben