This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
How to print to a file or pipe ??
- To: James Gunning <jsg at dpr dot csiro dot au>
- Subject: How to print to a file or pipe ??
- From: Jesse Marlin <jlm at compgen dot com>
- Date: Thu, 27 Jul 2000 09:37:43 -0400 (EDT)
- Cc: gdb at sources dot redhat dot com
- References: <v03130301b5a5244342f4@[138.194.136.85]>
- Reply-To: Jesse dot Marlin at compgen dot com
James Gunning writes:
> 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.
>
>
>
If you run gdb from within xemacs or even emacs then printing is no problem.
Just highlight the region you are interested in and, M-x print-region.