Re: [PATCH] libdw: Search for abstract origin in the correct CU

2023-01-30 Thread Mark Wielaard
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 tri

[PATCH] libdw: Search for abstract origin in the correct CU

2023-01-23 Thread Mark Wielaard
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. T