|
From: Josef W. <Jos...@gm...> - 2003-05-05 21:00:06
Attachments:
p
|
Hi, recently I found that there is sometimes cost attributed to some strange lines (with cachegrind/calltree) with GCC 3.x (using the DWARF2 debug info format). I had time to look at this. There is a bug in the DWARF2 debug line info loader when instructions following each other have source lines far from each other (e.g. with inlined functions). Attached is the patch to fix this. Long time ago I already provided a fix for the DWARF2 debug info loader. That one introduced "last_address". Obviously I forgot to add variables to save the last source position, as this patch does now. I suppose this should also go into the stable branch... Josef |
|
From: Julian S. <js...@ac...> - 2003-05-05 22:13:17
|
Ok, I will merge this, if you think it is correct and tested enough. I was just about to finalise 1.9.6, but I think I can put it in. Except cvs is currently not working :-( J On Monday 05 May 2003 9:04 pm, Josef Weidendorfer wrote: > Hi, > > recently I found that there is sometimes cost attributed to some strange > lines (with cachegrind/calltree) with GCC 3.x (using the DWARF2 debug info > format). > > I had time to look at this. There is a bug in the DWARF2 debug line info > loader when instructions following each other have source lines far from > each other (e.g. with inlined functions). > > Attached is the patch to fix this. > Long time ago I already provided a fix for the DWARF2 debug info loader. > That one introduced "last_address". Obviously I forgot to add variables to > save the last source position, as this patch does now. > > I suppose this should also go into the stable branch... > > Josef |