Re: [Dwarf-discuss] Request for clarification w.r.t. DW_AT_entry_pc

2024-10-10 Thread pogo 59 via Dwarf-discuss
Hi Andrew, I agree that the language could be tidied up here, but I'm confident that a lookup of the "containing scope" ought to start with the DIE itself. Normally any DIE describing a code entity (function, lexical block, unit) would itself have a low_pc/high_pc pair or DW_AT_ranges; if it doesn

[Dwarf-discuss] Request for clarification w.r.t. DW_AT_entry_pc

2024-10-10 Thread Andrew Burgess via Dwarf-discuss
I'd like to ask for some clarification relating to DW_AT_entry_pc. Here is the relevant section from the DWARF-5 spec for reference: 2.18 Entry Address The entry or first executable instruction generated for an entity, if applicable, is often the lowest addressed instruction of a cont