dwarf2 loclist question

Dhananjay R. Deshpande dhananjayd@KPITCummins.com
Mon Apr 5 05:15:00 GMT 2004



> -----Original Message-----
> From: Josef Zlomek [mailto:zlomj9am@artax.karlin.mff.cuni.cz]
> Sent: Friday, April 02, 2004 7:25 PM
>
> Is not return address supposed to be at the same offset from 
> frame base or in
> the same register in the whole function?

No, its not always true. For example, in case of SH, initial return address is in PR and for non-leaf functions, PR is saved on stack. With simple location description, only one of the above can be used. If return address location on stack is used for DW_AT_return_addr then backtrace fails when program counter is at function entry. 

For CPUs which don't have return address register, the offset is different at function entry and after prologue.

-Dhananjay



More information about the Gcc mailing list