On Jan 8, 2008 12:11 PM, Andrew Cagney <[EMAIL PROTECTED]> wrote:

> Arun Sharma wrote:
> > On Jan 8, 2008 7:42 AM, Andrew Cagney <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >
> >     what thoughts are there on adding a cursor method such as
> >     is_interrupted() or is_caller() or ...?  The implementation would
> >     likely
> >     involve the addition of an extra bit field to the cursor.
> >
> >
> > This sounds analogous to unw_is_signal_frame() - which is implemented
> > without an extra bit.
> >
> >  -Arun
> >
> >
> It is related yes; consider the back-trace:
>
>   <signal>     is_interrupted=1 is_signal=1 -- inner
>   handler()    is_interrupted=1 is_signal=0
>   <signal>     is_interrupted=0 is_signal=1
>   foo()        is_interrupted=1 is_signal=0
>   main()       is_interrupted=0 is_signal=0 -- outer
>

Thanks for the explanation and sorry for the late response.
Yes, adding such a bit sounds useful.

 -Arun
_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to