[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inlinable functions instead of macros
From: |
John Yates |
Subject: |
Re: inlinable functions instead of macros |
Date: |
Sat, 18 Aug 2012 18:55:14 -0400 |
On Sat, Aug 18, 2012 at 6:15 PM, Daniel Colascione <address@hidden> wrote:
>
> On Windows, we solved this problem a long time ago by teaching the
> operating system itself how to walk stack frames. When a program
> crashes, the OS captures a minidump containing the faulting stack,
> instruction pointer, register contents, and (optionally) things like
> data segments. If you have one of these minidumps, you don't need
> particularly good assertion-failure output: you have everything you
> need in the minidump, which you can load into the debugger and examine.
And even before that Vax/VMS solved the problem by capturing a stack
trace every time a signal was propagated (including of course ACCVIO
or access violation, the equivalent of SEGV). A shell setting
controlled whether the trace was displayed by default of not. Even if
one choose not to display it by default it was always available by
explicit request. VMS coding conventions encouraged failure
notification via signalling and required a signal handler to use a
subsystem specific status when propagating a signal. This lead to
very informative stack traces consisting of call sites interspersed
with local statuses showing how failure was interpreted and reported
as it propagated up the stack.
/john
- inlinable functions instead of macros, Stefan Monnier, 2012/08/17
- Re: inlinable functions instead of macros, Paul Eggert, 2012/08/17
- Re: inlinable functions instead of macros, Stefan Monnier, 2012/08/21
- C backtraces for Emacs, Paul Eggert, 2012/08/22
- Re: C backtraces for Emacs, Eli Zaretskii, 2012/08/22
- Re: C backtraces for Emacs, Paul Eggert, 2012/08/22
- Re: C backtraces for Emacs, Daniel Colascione, 2012/08/22
- Re: C backtraces for Emacs, Eli Zaretskii, 2012/08/23
- Re: C backtraces for Emacs, Paul Eggert, 2012/08/24
- Re: C backtraces for Emacs, Paul Eggert, 2012/08/25
- Re: C backtraces for Emacs, Eli Zaretskii, 2012/08/25