Mail Archives: djgpp/1998/09/15/10:26:13
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 -