Sign in Join

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

Mailing lists / fpc-pascal / 2010-07

gdb Segmentation Fault - $D- does not help?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Tobias Giesen

Hello,

I am still struggling with the Segmentation Fault that gdb produces when loading my app's symbols on Mac OS X.

I inserted $D- at the top of a few hundred units, but the app still has the exact same file size. Is the $D- compiler directive ignored? Shouldn't the symbols shrink?

Cheers,
Tobias

Reply by email

Jonas Maebe
to Tobias Giesen

Tobias Giesen wrote on Thu, 15 Jul 2010:

I inserted $D- at the top of a few hundred units, but the app still has the exact same file size. Is the $D- compiler directive ignored?

No.

Shouldn't the symbols shrink?

The Mac OS X linker does not copy the DWARF debug information from the original object files into the final binary (to speed up linking). It only adds references to the object files.

Jonas

---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.

Reply by email