This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A useful patch?
- To: aph at pasanda dot cygnus dot co dot uk, gcc at gcc dot gnu dot org
- Subject: Re: A useful patch?
- From: Mike Stump <mrs at windriver dot com>
- Date: Mon, 10 Apr 2000 16:05:15 -0700 (PDT)
> Date: 10 Apr 2000 14:53:22 -0000
> From: Andrew Haley <aph@pasanda.cygnus.co.uk>
> To: gcc@gcc.gnu.org
> I wrote tons of tracing code and eventually found the problem by
> adding a trap that triggers if the exceptioion handler chain is popped
> by the wrong function (any function other than the one that did the
> corresponding DHC push).
> This patch is potentially useful to anyone with problems in this area.
> But what should I do with it?
Submit it to gcc-patches.
> If I wrap the code in #ifdef SJLJ_EXECPTION_DEBUG or somesuch is it
> likely to be acceptable?
Yes, please wrap it.
> I've appended a rough (and untested) version of what I have in mind.
> If this sort of thing is acceptable I'll finish it up and submit it.
As the author of the code you had to debug, I am in favor of it
(wrapped and default off).
I had a function to trace out the data structures and print them, was
useful in debugging.