This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: libverbose_terminate, pass 1 of N


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


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