Module Name:    src
Committed By:   christos
Date:           Wed Jan  4 21:25:41 UTC 2017

Modified Files:
        src/sys/ddb: db_interface.h

Log Message:
add a simple stacktrace macro


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/ddb/db_interface.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ddb/db_interface.h
diff -u src/sys/ddb/db_interface.h:1.32 src/sys/ddb/db_interface.h:1.33
--- src/sys/ddb/db_interface.h:1.32	Tue Apr 12 20:47:02 2016
+++ src/sys/ddb/db_interface.h	Wed Jan  4 16:25:41 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_interface.h,v 1.32 2016/04/13 00:47:02 ozaki-r Exp $	*/
+/*	$NetBSD: db_interface.h,v 1.33 2017/01/04 21:25:41 christos Exp $	*/
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -73,4 +73,8 @@ void		db_show_module_cmd(db_expr_t, bool
 /* kern/subr_vmem.c */
 void		db_show_all_vmems(db_expr_t, bool, db_expr_t, const char *);
 
+#define	db_stacktrace() \
+    db_stack_trace_print((db_expr_t)(intptr_t)__builtin_frame_address(0), \
+	true, 65535, "", printf)
+
 #endif /* _DDB_DB_INTERFACE_H_ */

Reply via email to