[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Post-mortem debugging and abort
From: |
David Kastrup |
Subject: |
Re: Post-mortem debugging and abort |
Date: |
Sat, 14 Jun 2008 23:13:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> From: David Kastrup <address@hidden>
>> Cc: address@hidden
>> Date: Fri, 13 Jun 2008 18:48:34 +0200
>>
>> Well, the whole difference between exit (or maybe _exit?) and abort is
>> the core dump, and that is why abort rather than exit is also called on
>> failed assertions. So debugging is the whole point of abort and
>> declaring it in a way that precludes debugging is a bit pointless.
>
> And even if they disagree about this, GCC and glibc could have behaved
> differently under -g.
Actually, I don't agree here: if you are hunting down a compiler bug,
you don't want to have the bug disappear as soon as you ask for
debugging symbols. Not changing the generated code just because debug
info is output is a reasonable choice in my opinion.
One might want to have an independent code generator option -fdebug
which switches off just those optimizations that are notably awful when
debugging.
Anyway, we can discuss this on this list until we are blue in the face.
Won't change a thing.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: Post-mortem debugging and abort, (continued)
- Re: Post-mortem debugging and abort, Eli Zaretskii, 2008/06/13
- Re: Post-mortem debugging and abort, David Kastrup, 2008/06/13
- Re: Post-mortem debugging and abort, Lennart Borgman (gmail), 2008/06/13
- Re: Post-mortem debugging and abort, David Kastrup, 2008/06/13
- Re: Post-mortem debugging and abort, Richard M Stallman, 2008/06/14
- Re: Post-mortem debugging and abort, Lennart Borgman (gmail), 2008/06/14
- Re: Post-mortem debugging and abort, David Kastrup, 2008/06/14
- Re: Post-mortem debugging and abort, Lennart Borgman (gmail), 2008/06/14
- Re: Post-mortem debugging and abort, Richard M Stallman, 2008/06/15
- Re: Post-mortem debugging and abort, Eli Zaretskii, 2008/06/14
- Re: Post-mortem debugging and abort,
David Kastrup <=
- Re: Post-mortem debugging and abort, Richard M Stallman, 2008/06/14
Re: Post-mortem debugging and abort, Tom Tromey, 2008/06/13