This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] Debug hooks


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]