(gdb) target remote |foo-elf-sid --stdio

Ben Elliston bje@redhat.com
Thu Apr 18 09:51:00 GMT 2002


>>>>> "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



More information about the Sid mailing list