• Douglas Raillard's avatar
    Add CFI debug frame information for ASM functions · b91d935f
    Douglas Raillard authored
    
    
    This allows the debugger to print the callstack when there is an
    assembly function in the callstack.
    
    It will work as long as the CFA pointer (frame pointer) location is not
    modified (i.e. x29 is not touched in AArch64 state). It is the case in
    almost all assembly functions, so this patch improves the average
    debugging experience. Call stacks from the debugger should still be
    interpreted with care. In more complex functions, one could use .cfi*
    directives to inform the debugger about the new location of the CFA
    pointer.
    
    Change-Id: I9dabfbc033b45e8528e67f4823c17de7bf02fa24
    Signed-off-by: default avatarDouglas Raillard <douglas.raillard@arm.com>
    b91d935f
asm_macros_common.S 4.06 KB