Mail Archives: djgpp/2005/01/08/15:20:04
> From: "Samuel Lauber" <sam124 AT operamail DOT com>
> Date: Sat, 08 Jan 2005 16:41:23 GMT
>
> >> Is it possible to generate coredumps when DJGPP-programs crashes?
>
> > No (no one written the code to support that).
> Should someone do that?
Volunteers are welcome, as always.
> Once I had the idea of generating a C file containing a __dpmi_regs
> with the current state of the registers and compiling it...
It's not a good idea to invent a private format for core files. It is
much better to use one of the existing formats, notably, ELF, because
then supporting such core files in GDB would be trivial.
> > The closest you can get to this is the traceback printed when the
> > program crashes.
> And if it hasn't scrolled off the screen yet, you can type (in
> this example the program is called `a.out' and I'm at a
> Bourne shell)
>
> bash-2.06$ symify ./a.out
bfdsymify would be better than symify. Also, if the traceback does
scroll off, one can redirect stderr to a file (e.g., using the `redir'
program supplied with DJGPP), and then run bfdsymify on that file.
- Raw text -