Mail Archives: djgpp-workers/2001/04/25/05:00:38
On Wed, 25 Apr 2001, Nimrod A. Abing wrote:
> Yup, an improved sbrk -- one that records the block lengths would be a
> better solution. One reason, the core dumper will just use the
> __djgpp_memory_handle_list directly instead of using its own internal data
> structure.
Feel free to modify sbrk, if you like. It will be a welcome change, I
think.
> As for making the core file support a separate library, the original
> version did just that however it chained into the existing exception
> handler -- i.e. it chained into the default djgpp exception handler so
> after the core dump it would print the cftb. In this case, the register
> values especially eip differed in the core dump and in the cftb output, the
> register values in the core dump are wrong. I merged the core dumper code
> with dpmiexcp.c to correct this and added some variables to let the user
> tweak the core dumper.
I was thinking along the lines of providing the modified dpmiexcp.c (and
maybe a modified crt0.S) in this separate library. If you say something
like "gcc foo.c -lcore", these modified versions are linked in instead of
the stock ones in libc.a.
- Raw text -