This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to print to a file or pipe ??
- To: James Gunning <jsg at dpr dot csiro dot au>
- Subject: Re: How to print to a file or pipe ??
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 27 Jul 2000 11:18:14 +1000
- CC: gdb at sources dot redhat dot com
- References: <v03130301b5a5244342f4@[138.194.136.85]>
James Gunning wrote:
>
> Hi people
> I'm new to this list, but I have searched unsuccessfully through
> the gdb info pages & archives for an answer to this question.
> How do I print gdb output to a file. Something like
> print a[1]@1000 > file.txt
> would be ace :-)
> Thanks,
> James Gunning.
You can't (although it does come up often on the list of requested
features). One problem is that the above syntax is ambigious. ``file''
is a struct containing member ``.txt'' right?
Andrew