From 614e1868d6fee283f7bb6a0dc85105a9cfe488cd Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Sun, 22 Oct 2017 13:42:56 +0000 Subject: [PATCH] Change kdb_active type to u_char. Fixes warnings from gcc and keeps the small size. Perhaps nesting should be moved to another variablle. Reported by: ngie --- sys/kern/subr_kdb.c | 2 +- sys/sys/kdb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c index df7a9ef05741..249aab4b3471 100644 --- a/sys/kern/subr_kdb.c +++ b/sys/kern/subr_kdb.c @@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$"); #include #endif -bool __read_frequently kdb_active = 0; +u_char __read_frequently kdb_active = 0; static void *kdb_jmpbufp = NULL; struct kdb_dbbe *kdb_dbbe = NULL; static struct pcb kdb_pcb; diff --git a/sys/sys/kdb.h b/sys/sys/kdb.h index 27d2475cc224..1e68c3982850 100644 --- a/sys/sys/kdb.h +++ b/sys/sys/kdb.h @@ -59,7 +59,7 @@ struct kdb_dbbe { }; \ DATA_SET(kdb_dbbe_set, name##_dbbe) -extern bool kdb_active; /* Non-zero while in debugger. */ +extern u_char kdb_active; /* Non-zero while in debugger. */ extern int debugger_on_panic; /* enter the debugger on panic. */ extern struct kdb_dbbe *kdb_dbbe; /* Default debugger backend or NULL. */ extern struct trapframe *kdb_frame; /* Frame to kdb_trap(). */