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]
Other format: [Raw text]

Re: [patch 3.4/3.5] libffi & libjava port for hppa-linux


Randolph Chung writes:
 > > I didn't realize you were trying to use C++, sorry.
 > > 
 > > You aren't adjusting pc properly.  See libgcj/include/i386-signal.h
 > 
 > this doesn't seem to be the case. 

Well, it does in libgcj.  The handler in libgcj is written in C++, and
called in exactly the same way.

Show me your code.

 > i added the pc adjustment and it still
 > doesn't work on x86.

 > Also, how does that explain why it works if you add
 > an intervening frame between try-catch and the sighandler?

Without the PC adjustment, the handler doesn't always recognize the
fact that the PC is in the exception region, and throws out to the
next frame.

Andrew.


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