libverbose_terminate, pass 1 of N
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Dec 23 03:29:00 GMT 2002
Nathan Myers <ncm-nospam@cantrip.org> writes:
| On Sat, Dec 21, 2002 at 03:26:14AM +0100, Gabriel Dos Reis wrote:
| > Phil Edwards <phil@jaj.com> writes:
| >
| > | Jason's patch
| > |
| > | http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00957.html
| > |
| > | started an interesting thread of about a dozen messages. The upshot is that
| > | currently, using __verbose_terminate() as the termination handler requires a
| > | change to user code, usually main(). It Would Be Cool[tm] if the user could
| > | install this handler at link-time with -l, or at runtime with LD_PRELOAD.
|
| Have we established that a verbose-termination-by-default would not
| be conformant?
Users can have the following:
extern void his_fancy_terminate();
struct UserDefinedTerminator {
UserDefinedTerminator() {
std::set_terminate(his_fancy_terminate);
}
};
static UserDefinedTerminator his_terminator;
How should it be handled if we have verbose-termination-by-default as
currently proposed?
-- Gaby
More information about the Libstdc++
mailing list