Add .cfi_{start,end}proc for RISC-V assembly functions
This allows GDB to print more useful backtraces when setting a breakpoint on an assembly function. Reviewed By: jhb Differential Revision: https://reviews.freebsd.org/D27177
This commit is contained in:
parent
978a8cccd8
commit
acf8792067
@ -47,8 +47,8 @@
|
||||
#define _C_LABEL(x) x
|
||||
|
||||
#define ENTRY(sym) \
|
||||
.text; .globl sym; .type sym,@function; .align 4; sym:
|
||||
#define END(sym) .size sym, . - sym
|
||||
.text; .globl sym; .type sym,@function; .align 4; sym: .cfi_startproc;
|
||||
#define END(sym) .cfi_endproc; .size sym, . - sym
|
||||
|
||||
#define EENTRY(sym) \
|
||||
.globl sym; sym:
|
||||
|
Loading…
x
Reference in New Issue
Block a user