how to get frame size from debug info?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



for mips/aarch64 this can be done relatively easy — for prologue like
addiu   sp,sp,-688
we can find DW_AT_low_pc of function and then check section .debug_frame with found pc:
DW_CFA_advance_loc: 4 to 00001ce0
DW_CFA_def_cfa_offset: 688
 
However for x86_64 FDE for functions looks like huge list of DW_CFA_offset & DW_CFA_advance_loc and DW_CFA_def_cfa_offset is always 16. DW_AT_frame_base also always consists only from 1 byte block - DW_OP_call_frame_cfa
Is it possibly to extract frame size for x86_64?
 
 




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux