Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ddb don't provide db_lstacktrace() for crash (yet?).



details:   https://anonhg.NetBSD.org/src/rev/167a496c3ac4
branches:  trunk
changeset: 961766:167a496c3ac4
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Apr 18 01:28:50 2021 +0000

description:
don't provide db_lstacktrace() for crash (yet?).

diffstat:

 sys/ddb/db_interface.h |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 9471320c83ac -r 167a496c3ac4 sys/ddb/db_interface.h
--- a/sys/ddb/db_interface.h    Sun Apr 18 01:05:23 2021 +0000
+++ b/sys/ddb/db_interface.h    Sun Apr 18 01:28:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.h,v 1.39 2021/04/18 01:05:23 mrg Exp $    */
+/*     $NetBSD: db_interface.h,v 1.40 2021/04/18 01:28:50 mrg Exp $    */
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -87,8 +87,13 @@
        true, 65535, "", prfunc)
 #endif /* !db_stacktrace_print */
 
+#define        db_stacktrace()         db_stacktrace_print(printf);
+#define        db_ustacktrace()        db_stacktrace_print(uprintf);
+
 #include <sys/syslog.h>
 
+#ifdef _KERNEL
+
 static __inline__ void
 _db_log_wrapper(const char *fmt, ...)
 {
@@ -99,8 +104,8 @@
        va_end(ap);
 }
 
-#define        db_stacktrace()         db_stacktrace_print(printf);
-#define        db_ustacktrace()        db_stacktrace_print(uprintf);
 #define        db_lstacktrace()        db_stacktrace_print(_db_log_wrapper);
 
+#endif
+
 #endif /* _DDB_DB_INTERFACE_H_ */



Home | Main Index | Thread Index | Old Index