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: 3 debug hooks for begin_function


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.



r~


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