This is the mail archive of the
mailing list for the GCC project.
Re: 3 debug hooks for begin_function
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: 3 debug hooks for begin_function
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 16 Jul 2001 12:49:12 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010716203344.B24460@daikokuya.demon.co.uk>
On Mon, Jul 16, 2001 at 08:33:44PM +0100, Neil Booth wrote:
> a) in final_start_function I do an output_source_line regardless of
> debug type. This means that xcoff and sdb get an extra line number
> compared to previously; I'm assuming this is harmless.
I wouldn't assume that. You'd need to run the gdb testsuite
on such a host to verify. I suspect, in fact, that the change
would cause the "break in function, check line number, next,
check line number" type tests to fail.
> It seems clearer
> than the alternative of moving the output_source_line() calls into the
> hooks, which would necessarily include the do_nothing hook.
No, don't think of adding such to a do_nothing hook. Instead
you'd add new functions to whichever formats needed it.