------- Comment #7 from ebotcazou at gcc dot gnu dot org 2009-03-18 16:56 ------- > OK. I decided to look at this in more detail in the simulator. The failing > instruction is: > > 2001358: d0 07 bf fc ld [ %fp + -4 ], %o0 > > and when I run with a breakpoint there, a dump of the registers shows that > fp is 0!! When I try to step, it doesn't happen. If I do a "watch $fp", > it never goes to 0 and runs correctly.
Looks like the current register window is not flushed before the setjmp. You need to investigate whether traps work correctly on the simulator. -- ebotcazou at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35180