EGCS vs MSVC - exception handling

Arun Sharma asharma@netscape.com
Tue Jan 13 04:31:00 GMT 1998


Jeffrey A Law <law@cygnus.com> writes:

> That requires quite a bit more work.  You might start with adding
> -fasynchronous-exceptions to the command line (or something close to that)
> which instructs flow to create an edge from every insn to its EH handler
> (since just about any insn could trap into a signal handler).

Why would that be necessary ? Inside the signal handler, I know
precisely which instruction generated the trap by looking into the
sigcontext. All I need to do is to be able to unwind the stack and
look for the right exception handler to call.

The normal stack unwinding mechanism starts from the current pc and
sp, but in this case, it needs to go through the pc and sp in
sigcontext.

	-Arun



More information about the Gcc mailing list