dwarf2 loclist question

Josef Zlomek zlomj9am@artax.karlin.mff.cuni.cz
Fri Apr 2 13:55:00 GMT 2004


> The third party debugger I am using requires DW_AT_return_addr be generated
> for subroutines. It uses this for stack trace. The return address location can
> be specified correctly only by loclist. The return address location before
> prologue, after prologue and  at epilogue will be different. 

Is not return address supposed to be at the same offset from frame base or in
the same register in the whole function?
If so then it is enough to emit simple location description like it was emitted
for normal varaibles before variable tracking was merged.

Josef



More information about the Gcc mailing list