Mail Archives: djgpp/1998/08/09/06:12:25
On Fri, 7 Aug 1998, George Foot wrote:
> I think someone once said that it would be complicated, because of the
> way the program's memory is divided into separate blocks.
That was me ;-). But it seems that debugging core files doesn't really
require to reconstruct the memory layout. This layout is important if
the debuggee could call `sbrk'. Since it cannot do that in post-mortem
debugging, all you need to care about is that you can find a variable or
an instruction given their address.
> The impression I got was that GDB likes to load the core as
> a single continuous block, in which case we might get very large core
> files if the program's DPMI memory blocks aren't tightly packed.
Even if this is true, it just means that a program which wants to support
core dumps needs to be built with unixy sbrk algorithm: not an impossible
requirement IMHO.
- Raw text -