how to examine data with compiler optimization option set?
Frank Ch. Eigler
fche@redhat.com
Thu Sep 4 18:13:00 GMT 2008
Hi -
On Thu, Sep 04, 2008 at 06:55:15PM +0300, Eli Zaretskii wrote:
> [...]
> > If parameters are passed in registers they are very likely to get lost.
>
> Then the compiler should, under -ggdb, emit code and debug info that
> allow GDB finding these parameters somewhere.
And it should.
> [...] I know _I_ would happily give up this optimization if I could
> get back the lost ability of debugging reasonably well optimized
> code.
You shouldn't have to give up too much. gcc just needs to try harder.
If you guys want to help provide some data & testing help, please
check out Alex Oliva's var-tracking gcc branch.
- FChE
More information about the Gdb
mailing list