This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa mudflap] source file/line locations
On Sat, 2002-08-31 at 09:24, Richard Henderson wrote:
> I think the most clever solution would be to use the debug
> information present in the executable image, using the return
> address of the __mf_check call as the location key. This
> would require no extra arguments and no extra runtime data.
> In theory, you only have overhead when errors are encountered.
>
> That's likely too complicated for the short-term.
That's what the java runtime does to print stack traces. See
gcc/libjava/name-finder.cc. It works well.
AG