This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: (libgcc) what does _Unwind_Resume do ?
- From: "Sunzir Deepur" <sunzird at gmail dot com>
- To: "Andrew Haley" <aph-gcc at littlepinkcloud dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 20 Oct 2007 20:07:19 +0200
- Subject: Re: (libgcc) what does _Unwind_Resume do ?
- References: <b758af9e0710200929h41cc842fla0a9401d6217aabc@mail.gmail.com> <18202.16714.742490.83298@zebedee.pink>
Hi Andrew,
On 10/20/07, Andrew Haley <aph-gcc@littlepinkcloud.com> wrote:
> Sunzir Deepur writes:
> > I have noticed that glibc has extensive use of the _Unwind_Resume procedure
> > Can anyone please explain me what is it ? why is it needed for C programs
>
> It's needed for pthread_cancel.
> 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
Is the winding relevant only to C++ exception catching ?
If so, why would it be needed when compiling simple C apps ?
Thank you (and sorry for posting initialy at gcc@gcc.gnu.org),
Sunzir