Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Core dump information when code is optimized
@ 2009-04-16  7:00 Lennyk
  2009-04-16  9:00 ` Joel Brobecker
  2009-04-17  7:59 ` Michael Snyder
  0 siblings, 2 replies; 4+ messages in thread
From: Lennyk @ 2009-04-16  7:00 UTC (permalink / raw)
  To: gdb

Hi,

When I compile only with -O1 flag - my core dump information does not 
show line number or offset (when a segmentation fault has occurred).
Only when I add the -g flag does the core dump contain line number 
information - but the executable's size grows significantly!

Is there a way to get this information with core dump - but maintain the 
optimized sized executable?

Thanks!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-20  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-16  7:00 Core dump information when code is optimized Lennyk
2009-04-16  9:00 ` Joel Brobecker
2009-04-17  7:59 ` Michael Snyder
2009-04-20 14:47   ` Lennyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox