Module Name: src
Committed By: uwe
Date: Sat Dec 24 14:14:52 UTC 2022
Modified Files:
src/sys/arch/x86/x86: db_trace.c
Log Message:
db_trace.c: Use DB_SYM_NULL instead of respelling it
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/x86/db_trace.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/db_trace.c
diff -u src/sys/arch/x86/x86/db_trace.c:1.5 src/sys/arch/x86/x86/db_trace.c:1.6
--- src/sys/arch/x86/x86/db_trace.c:1.5 Sat Dec 24 02:31:43 2022
+++ src/sys/arch/x86/x86/db_trace.c Sat Dec 24 14:14:52 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.5 2022/12/24 02:31:43 uwe Exp $ */
+/* $NetBSD: db_trace.c,v 1.6 2022/12/24 14:14:52 uwe Exp $ */
/*
* Mach Operating System
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.5 2022/12/24 02:31:43 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.6 2022/12/24 14:14:52 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -205,7 +205,7 @@ db_stack_trace_print(db_expr_t addr, boo
sym = db_frame_info(frame, callpc, &name, &offset, &is_trap,
&narg);
- if (lastframe == NULL && sym == (db_sym_t)0 && callpc != 0) {
+ if (lastframe == NULL && sym == DB_SYM_NULL && callpc != 0) {
/* Symbol not found, peek at code */
u_long instr = db_get_value(callpc, 4, false);