This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: Wishlist: declarations suitable for post mortem debugging


On 4/26/2012 10:11 AM, David Kastrup wrote:
> Sorry for the top post here: it's one of those few cases where I think
> that adding the context below makes sense.
> 
> Paul Pluzhnikov <ppluzhnikov@google.com> writes:
> 
>> David,
>>
>> This is probably best discussed on libc-alpha (CC'd).
>>
>> Providing a link to previous discussion, bugzilla PR, etc. might help.
> 
> <URL:http://sourceware.org/bugzilla/show_bug.cgi?id=6522>

I completely agree (trimmed libc-help from CC).

The next step as I see it is:

(1) The compiler ensures that you can unwind from noreturn.
- This may have an undesirable performance penalty on some machines.
- Precedent for this set by ARM which now saves more things in noreturn funcs.

or

(2) Add a new attribute that we can apply to noreturn.
- Call it "noreturn_allowunwind" and we apply that to abort().

In the case of (1) glibc has nothing left to do.

In the case of (2) we fixup the glibc headers to use the new attribute.

Does that make sense?

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026


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