This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: debug_reload output
- To: chris at lslsun dot epfl dot ch (Christian Iseli)
- Subject: Re: debug_reload output
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 14 Oct 1997 10:00:44 -0600
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199710140839.KAA20719@lslsun17.epfl.ch>you write:
> Hi,
>
> I would like to be able to redirect the output of de debug_reload routine
> to something else than stderr, e.g., the greg dump file...
>
> So I'd like to suggest the following trivial patch be applied.
I think you want two functions. One which accepts a stream parameter
and one which defaults to stderr. Obviously, the one which defaults to
stderr can just call the one which accepts a stream parameter passing
"stderr" as the stream.
That way you can call the function from gdb without knowing what
stderr really is (since it's usually something gross like __iob[1].
jeff