From: Joel Brobecker <brobecker@adacore.com>
To: Lennyk <lennyk430@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Core dump information when code is optimized
Date: Thu, 16 Apr 2009 09:00:00 -0000 [thread overview]
Message-ID: <20090416070855.GI7603@adacore.com> (raw)
In-Reply-To: <49E6D676.9000108@gmail.com>
> Is there a way to get this information with core dump - but maintain the
> optimized sized executable?
The -O flags are completely independent from debugging information.
In order to do symbolic debugging, GDB needs debugging information,
which is why using the -g switch helps. There might be a way to produce
only line number information if that's what you need, but I don't know
offhand. Check the compiler/linker docs. Regardless, the extra info
will cause the size of your executable to grow, as you have discovered.
--
Joel
next prev parent reply other threads:[~2009-04-16 7:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 7:00 Lennyk
2009-04-16 9:00 ` Joel Brobecker [this message]
2009-04-17 7:59 ` Michael Snyder
2009-04-20 14:47 ` Lennyk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090416070855.GI7603@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=lennyk430@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox