[fpc-devel] Are debug info in PPU already encoded stabs/dwarf?

Ludo Brands ludo.brands at free.fr
Wed Sep 7 20:39:17 CEST 2011


> Well what happens when:
> 
> - you compile a package with stabs
> - your program with dwarf
> 
> Or vice/versa.
> 
> What will be in the final exe?
> 

Both

> Is the debug info in the ppu already format specific, or 
> generic. Will the stabs end up together with the dwarf?
> 

Stabs go to the .stabs and .stabstr sections, dwarf to .debug_info,
.debug_line, debug_xxx sections, the linker only relocates the addresses for
the symbols. Don't know if the compiler supports it but you could have the 2
formats in an object file. And if you like complexity, on windows you can
even add coff debugging info to the exe as well.

Ludo




More information about the fpc-devel mailing list