This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] Debug hooks
- To: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Subject: Re: [RFA] Debug hooks
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 9 Jul 2001 22:43:21 +0100
Richard Henderson wrote:-
> On Mon, Jul 09, 2001 at 10:11:10PM +0100, Neil Booth wrote:
> > + debug_hooks = dbx_debug_hooks;
>
> Um, this must be "&dbx_debug_hooks". You say you got
> into stage3? How?
Well spotted! I sent an old patch - whilst typing the mail I was
doing a cvs update which just hung and I forgot about replacing the
old patch in the mail. The only difference is the &'s and . becomes
->.
> > + if (debug_hooks)
> > + (*debug_hooks.init) (asm_out_file, main_input_filename);
>
> Why not have a "no_debug_hooks" that does nothing?
I could do that; it would mean adding a bunch of do-nothing functions,
which could get tedious when we have 15 hooks. Then again I suppose
one or other of the debug formats will often want to do nothing.
I'll change it to do that and resend.
Neil.