View Single Post

   
  #5 (permalink)  
Old 02-20-2008, 07:00 PM
Steve Youngs
 
Posts: n/a
Default Re: gdb to file question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

* salta <salta@mynet.net> writes:

> I'm trying to find a way to send gdb output to some "text" file
> like gdb myprog > gdb.txt, so I wouldn't have to copy all the output
> by hand, but I've been unable to do so so far.


> Is it possible at all ?


Certainly!

$ gdb myprog core 2>&1 | tee gdb.txt

Is one way. But if you use emacs, `M-x gdb' is _much_ easier. :-)

--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| Genius - Is the ability to reduce |
| the complicated to the simple |
|----------------------------------<steve@youngs.au.com>---|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: The SXEmacs Project <http://www.sxemacs.org>
Comment: Eicq - The SXEmacs ICQ Client <http://www.eicq.org/>

iEYEARECAAYFAkUP3roACgkQHSfbS6lLMANphACfejltERcX5/CIptF8yhzFnWQq
figAni3jqR84CwfmCiUA5YR+XpgYPA+z
=froe
-----END PGP SIGNATURE-----
Reply With Quote