Re: Strange debug behavior with 4.4.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steve Teale <steve.teale@xxxxxxxxxxxxxxxx> writes:

> On Wed, 2010-03-03 at 07:40 -0800, Ian Lance Taylor wrote:
>> Steve Teale <steve.teale@xxxxxxxxxxxxxxxx> writes:
>> 
>> > (gdb) n
>> > 6313	    input_location = EXPR_LOCATION (*expr_p);
>> > (gdb) n
>> > 6729				   post_p == &internal_post ? NULL : post_p,
>> >
>> > Things go pear shaped after line 6312 - after that, next seems to get
>> > you somewhere rather arbitrary.
>> 
>> You are debugging optimized code.  Random jumps do happen.  You need
>> to go further to see if there is a real problem here.
>> 
>> Ian
>
> Ian,
>
> Go further?

I mean: run the "n" command a few more times to see where you get to.

> So should I build the compiler with no optimization?

That is probably a good idea if you want to debug the compiler.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux