Mail Archives: djgpp-workers/1998/04/01/03:18:08
On Wed, 1 Apr 1998, George Foot wrote:
> I think the average DOS user would be very annoyed at having large
> files dumped to disk.
``Large''? Come on, an average program seldom takes more than 20 stack
frames, which generates traceback that is a few KB long. That's a single
cluster on most modern disks.
> IMHO proper core file support (if any) should
> be an optional extra, possibly enabled by the environment or the
> programmer. Unless GDB can read them I don't expect many people
> would be interested in it though.
Reading them is not the problem. The real problem is how to recreate the
memory layout which was in effect when the program crashed. Charles once
explained that this might be very hard in some cases. Charles, could you
please elaborate?
> If GDB support isn't feasible, people can simply use their own signal
> handlers to generate their core files and use a custom debugger to
> browse them.
Generating the core file is quite simple, I think. Emacs does something
very similar when it dumps its image as part of the build process.
- Raw text -