[Dwarf-discuss] dwarf ver3.0: prologue_end and epilogue_begin bits
Mon May 21 15:26:01 GMT 2007
Quoting Ramanaiah Nalamothu <ramana.venkat83 at gmail.com>:
> 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?
Each address in the line table is associated with a source line/column.
Commonly, the line number associated with the prolog_end is the first
line of the body of the function. This is where a debugger will stop
when you ask to set a breakpoint on the function.
The line number associated with the epilogue_begin is after the body
of the function, usually the closing brace.
Michael Eager Eager Consulting eager at eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
More information about the Dwarf-discuss