[PATCH v2 3/4] Fix handling of DW_AT_entry_pc of inlined subroutines
Sun May 30 13:58:51 GMT 2021
It may happen that the inline entry point is not the
start address of the first sub-range of an inline
But the PC for a breakpoint on an inlined subroutine
is always the start address of the first sub-range.
This patch moves the sub-range starting at the entry
point to the first position of the block list.
Therefore the breakpoint on an inlined function
changes in rare cases from the start address of
the first sub-range to the real entry point.
There should always be a subrange that starts at the
entry point, even if that is an empty sub-range.
2021-01-01 Bernd Edlinger <email@example.com>
* dwarf2/read.c (dwarf2_record_block_ranges): Move range beginning
at DW_AT_entry_pc to the first block range.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2194 bytes
Desc: not available
More information about the Gdb-patches