cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/08/12/12:30:27

Date: Wed, 12 Aug 1998 19:30:08 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andris Pavenis <pavenis AT lanet DOT lv>
cc: djgpp-workers AT delorie DOT com
Subject: Re: One small annoyance with DJDEV202 (980726)
In-Reply-To: <B0000039080@stargate.astr.lu.lv>
Message-ID: <Pine.SUN.3.91.980812192624.945C-100000@is>
MIME-Version: 1.0

On Wed, 12 Aug 1998, Andris Pavenis wrote:

> I suggest to add possibility to disable (at runtime) register and 
> stack dump after SIGABRT. When I'm using assert() in program 
> then the message outputted by assert() is often scrolled out of 
> screen (together with previous output).

This should only happen when `abort' is called from a deeply-nested 
function.

If you want to disable the crash traceback, just install a handler for 
SIGABRT, and have it call `exit'.  I think this is easy enough, and makes 
(yet another) DJGPP-specific global variable and/or environment variable 
unnecessary.

Also, if you don't want the traceback, why do you use `assert'?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019