Hi, On Mon, Jan 23, 2023 at 10:15:20AM +0100, Mark Wielaard wrote: > With gcc -flto the abstract origin of an inlined subroutine > could be in a different CU. dwarf_getscopes might return an > empty scope if it cannot find the abstract origin scope. So > make sure to search in the > > We also tried to add the origin match in pc_record directly > in the current inlined scope. This always failed, causing > to do a needless traversal, followed by the full CU scan in > dwarf_getscopes. Just always stop the pc_record search and > then do the CU origin_match in dwarf_getscopes.
Pushed. Cheers, Mark