delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/15/10:26:13

Date: Mon, 14 Sep 1998 19:53:03 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Gautier DOT DeMontmollin AT maths DOT unine DOT ch
cc: djgpp AT delorie DOT com
Subject: Re: Trace-back with details
In-Reply-To: <uLZNdSuR0FTf@nedcu4>
Message-ID: <Pine.SUN.3.91.980914194403.29645A-100000@is>
MIME-Version: 1.0

On 14 Sep 1998 Gautier DOT DeMontmollin AT maths DOT unine DOT ch wrote:

> Are there means to include an explicit trace-back
> into the run-time code, that would use the symbol
> table to explain the EIPs ?

This was discussed during DJGPP v2 development, several times.  It is 
possible to do this, but including such a feature by default in every 
DJGPP program is not necessarily a good idea.  Accessing the symbol table 
requires to read large portions of the .exe file, and doing so from a 
crashed program (which could potentially have its stack or DS register 
scrogged) could actually make things worse.  The current traceback code 
is very carefully written to not use atomatic variables and not call any 
library functions beyond what's necessary to write the output to file 
handle 2.

And, of course, the code bloat of every DJGPP program would also be an 
issue.

If you want to do that from your own programs, you could always spawn 
symify.exe, or include symify's code in your application.  The sources 
are free, so just get djlsr201.zip and have fun!

- Raw text -


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