This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: how to redirect output of sub program in target extended-remote
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: "Amker.Cheng" <amker dot cheng at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 17 Apr 2011 15:35:12 +0200
- Subject: Re: how to redirect output of sub program in target extended-remote
- References: <BANLkTinhSQsNYgOPtpjo1sZ=XEPPZ=V9EQ@mail.gmail.com>
On Sun, 17 Apr 2011 10:06:38 +0200, Amker.Cheng wrote:
> > target extended-remote | stub_program
> everything goes ok, but the only problem is that the outputs of
> stub_program go into the same terminal of gdb.
> Is there any method to redirect the output of stub_program in this case?
(gdb) target extended-remote | stub_program 2>/tmp/file
Or I do not understand the question.
Regards,
Jan