svn commit: r368070 - head/sys/riscv/include

Alex Richardson arichardson at FreeBSD.org
Thu Nov 26 17:37:22 UTC 2020


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, at function; .align 4; sym:
-#define	END(sym) .size sym, . - sym
+	.text; .globl sym; .type sym, at function; .align 4; sym: .cfi_startproc;
+#define	END(sym) .cfi_endproc; .size sym, . - sym
 
 #define	EENTRY(sym)						\
 	.globl	sym; sym:


More information about the svn-src-head mailing list