Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 db_trace.c: Use DB_SYM_NULL instead of resp...



details:   https://anonhg.NetBSD.org/src/rev/bb60d51f201e
branches:  trunk
changeset: 372760:bb60d51f201e
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Dec 24 14:14:52 2022 +0000

description:
db_trace.c: Use DB_SYM_NULL instead of respelling it

diffstat:

 sys/arch/x86/x86/db_trace.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b251426fba48 -r bb60d51f201e sys/arch/x86/x86/db_trace.c
--- a/sys/arch/x86/x86/db_trace.c       Sat Dec 24 02:31:43 2022 +0000
+++ b/sys/arch/x86/x86/db_trace.c       Sat Dec 24 14:14:52 2022 +0000
@@ -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 @@
                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);
 



Home | Main Index | Thread Index | Old Index