This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: getting the line of a function when walking the stack with libbfd


On Sat, Mar 24, 2012 at 10:42:46AM +0100, Vincent Torri wrote:
> Is it normal to not get the correct lines ?

-O2 often reorganises code, leading to confusion in line numbers.
Use readelf -wL or readelf -wl to see what gcc is doing.

-- 
Alan Modra
Australia Development Lab, IBM


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