[Dwarf-Discuss] debugging information available at runtime?

Paul Pluzhnikov ppluzhnikov at google.com
Tue Sep 8 22:57:19 PDT 2009


On Tue, Sep 8, 2009 at 10:08 PM, Jason Merrill <jason at redhat.com> wrote:
>
> On 09/08/2009 06:11 PM, Brendan Miller wrote:
>>
>> Is DWARF generally loaded into memory at runtime along with the rest
>> of the executable code?
>
> No, it goes in non-loaded sections.

Specifically, for source line mapping you need .debug_line section.
You can see section flags with 'readelf -S a.out'. Usually .debug_line
will not have 'A' (allocatable) flag, and so will not be present in
memory.

Cheers,
--
Paul Pluzhnikov



More information about the Dwarf-Discuss mailing list