Sign in Join

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

Mailing lists / fpc-pascal / 2009-11

dwarf and stabs info in ppu?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Martin

I wonder if there is a way, to include dwarf and stabs in the ppu. Or maybe I got something else wrong.

If I compile a package, the lcl, the rtl, whatever, I can do so with -g getting stabs, then any app I compile with -gw will not see the debug info for those package
-gw geting dwarf, and any app compiled with -g will not see it

So I assume that the debug info stored in the ppu or .o files is specific to either dwarf or stabs.

Hence, I wonder, if both could be included in ppu or .o files. So I can choose freely when compiling my apps. (I understand the final exe can only have one (probably))

Best Regards
Martin

Jonas Maebe
to Martin
Martin wrote
If I compile a package, the lcl, the rtl, whatever, I can do so with -g getting stabs, then any app I compile with -gw will not see the debug info for those package -gw geting dwarf, and any app compiled with -g will not see it

That is normal.

So I assume that the debug info stored in the ppu or .o files is specific to either dwarf or stabs.

It's in the .o files.

Hence, I wonder, if both could be included in ppu or .o files. So I can choose freely when compiling my apps. (I understand the final exe can only have one (probably))

This is at least not supported by the Mac OS X linker: if it detects DWARF debug information in an object file, it will ignore any Stabs debug info. So I do not think that what you want is possible. gcc also can only include one kind of debug information in object files.

Jonas