Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-09

Are debug info in PPU already encoded stabs/dwarf?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

Well what happens when:

- you compile a package with stabs
- your program with dwarf

Or vice/versa.

What will be in the final exe?

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

Martin

Reply by email

Vincent Snijders
to Martin

2011/9/7 Martin :

Show quoted text 11 lines
Well what happens when: - you compile a package with stabs - your program with dwarf Or vice/versa. What will be in the final exe? Is the debug info in the ppu already format specific, or generic. Will the stabs end up together with the dwarf?

As far as I know, is the debug information in the .o file and already specific for the format.

Vincent

Reply by email

Ludo Brands
to Martin: Well what happens when: - you compile a package with stabs - your program with dwarf Or…
Show quoted text 9 lines
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

Reply by email