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:
Alex Richardson 2020-11-26 17:37:22 +00:00
parent 978a8cccd8
commit acf8792067

View File

@ -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: