Author: arichardson Date: Thu Nov 26 17:37:22 2020 New Revision: 368070 URL: https://svnweb.freebsd.org/changeset/base/368070
Log: 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 Modified: head/sys/riscv/include/asm.h Modified: head/sys/riscv/include/asm.h ============================================================================== --- head/sys/riscv/include/asm.h Thu Nov 26 17:29:16 2020 (r368069) +++ head/sys/riscv/include/asm.h Thu Nov 26 17:37:22 2020 (r368070) @@ -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: _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"