Mail Archives: djgpp/1998/08/06/03:00:57
On Thu, 6 Aug 1998, George Foot wrote:
> but the only reason for the traceback to stop after a single
> line would be for the content of the stack to be bogus.
That's not the only case: the content of the exception state structure
could be scrogged as well.
> Whatever EIP
> is, it is just printed as the first item on the traceback. I don't
> think it affects the rest of the traceback at all.
I think it could affect it indirectly through the exception structure.
> I can't help feeling that it would be better to get GDB to
> understand the core dumps. I don't know anything about GDB though.
GDB already knows about core files. You just need to make your core
files fit into the existing GDB code.
> I'm also not sure that it would benefit much from being part of djgpp
> directly. It seems to work quite well as a separate module.
You could add it to the src/debug tree in DJGPP sources, so it will be
put into libdbg.a. Then whoever needs it would link with -ldbg.
> That said, a few changes to the djgpp library code would make it
> possible for this to work better in a number of ways. At the moment
> there's no way to find out the sizes of the DPMI memory blocks,
> unless the DPMI server supports __dpmi_get_memory_block_size_and_base
> -- but I haven't found a DPMI server that supports this yet.
Are you sure? Did you look at src/libc/dpmi/helper/mapmem.c in the
library sources? It seems that it does some of the things that you
need.
- Raw text -