[Dwarf-discuss] dwarf ver3.0: prologue_end and epilogue_begin bits

Ron Brender ron.brender@charter.net
Mon May 21 11:59:17 GMT 2007

The prologue beginning and ending location are compiler code generation
artifacts that do not correlate usefully with line number. For example, 
the same source might be input as

     void foo (...) {...}


     foo (

The compiled code, hence the begin and end prologue addresses, will be 
identical, but the line numbers will vary. The "normal" line-address 
correlation will naturally associate a line number with those same 
instructions--unrelated to the fact that they are begin or
end prologue related; that is expected.


Ramanaiah Nalamothu wrote:
> Hi,
>  I am working at assembler context to emit the ELF-DWARF(dwarf ver3.0). 
> I need to set the bits prologue_end and epilogue_begin. My compiler 
> emits debug directive with specific -ve line numbers to indicate 
> prologue_end and epilogue_begin. But they are not acceptable line 
> numbers in source file.
> My doubt is, do I need to associate the their occurance with the source 
> line numbers or is it sufficient just to tell at what 'address' the 
> prologue_end or epilogue_begin occur? If debugger needs line number, 
> what line numbers should be emitted in my case?
> Thanks in advance for your replies.
> Regards,
> Ramana

More information about the Dwarf-discuss mailing list