This is the mail archive of the gcc@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: Exception handling


On Monday, August 26, 2002, at 11:23 , Serguei I. Ivantsov wrote:


GCC does not catch hardware exceptions like divide by 0 and other traps.
Look at signal(3) for information on how to trap these on UNIX's.

Well,
What types of exceptions can I catch? access violations, invalid memory
access etc. ?

With c++ exception none of the above but with signal(3) you trap access violations.

Thanks,
Andrew Pinski

PS hint use `man 3 signal'.


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