This is the mail archive of the gcc-help@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: (libgcc) what does _Unwind_Resume do ?


This isn't approriate for gcc@gcc.gnu.org, which is about gcc
development.  I'm replying to gcc-help.

Sunzir Deepur writes:

 > I have noticed that glibc has extensive use of the _Unwind_Resume procedure
 > (from libgcc_eh.a) but I have failed to understand it (no luck with
 > the onlinedocs:
 > http://gcc.gnu.org/onlinedocs/gccint/Exception-handling-routines.html#Exception-handling-routines).
 > 
 > Can anyone please explain me what is it ? why is it needed for C programs
  
It's needed for pthread_cancel.

 > (I understand it is related to exception handling ?) ?

It resumes unwinding after a cleanup.

http://www.codesourcery.com/cxx-abi/abi-eh.html
http://www.mit.edu/~sipb-iap/2004/inside-c/day3/exceptions.html

Andrew.


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