Date: Thu, 26 Nov 2020 17:37:22 +0000 (UTC) From: Alex Richardson <arichardson@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r368070 - head/sys/riscv/include Message-ID: <202011261737.0AQHbMYp012761@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011261737.0AQHbMYp012761>