This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to examine data with compiler optimization option set?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]