|
From: Josef W. <Jos...@gm...> - 2003-05-05 21:00:06
|
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 |