geda-developers team mailing list archive
-
geda-developers team
-
Mailing list archive
-
Message #00019
Re: Wrong source information in GDB while debugging libgeda.so
W dniu 3 stycznia 2012 09:52 użytkownik Peter Clifton
<peter.clifton@xxxxxxxxxxxxxxxxxxxxxxxxx> napisał:
>> I have encountered a strange problem and am looking for advice. While
>> trying to debug the changes on "pin-cues" branch I have found that
>> some of the source information provided by gdb is incorrect.
>
> Just a guess, but try compiling with -O0 rather than -O2, as the
> compiler may be shuffling things around to optimise. That can make
> things difficult to follow in GDB.
>
> I wouldn't have thought it would affect locations of exported symbols
> though.
I tried that (CFLAGS=-g -O0), same story...
Regards,
Krzysztof Kościuszkiewicz
Follow ups
References