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/ce6f04dd95e8
branches:  trunk
changeset: 378594:ce6f04dd95e8
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 e4b835ca3f52 -r ce6f04dd95e8 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 @@ void         db_show_disk(db_expr_t, bool, db_e
        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 @@ static __inline__ void
        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