aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2017-10-22 13:42:56 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2017-10-22 13:42:56 +0000
commit614e1868d6fee283f7bb6a0dc85105a9cfe488cd (patch)
treeb7a61b1595887982491b78c946b2f1ad9d321761 /sys
parentf2374e0cc5e7d8e042d4763924899e32f7aa4d01 (diff)
downloadsrc-614e1868d6fee283f7bb6a0dc85105a9cfe488cd.tar.gz
src-614e1868d6fee283f7bb6a0dc85105a9cfe488cd.zip
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
Notes
Notes: svn path=/head/; revision=324863
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_kdb.c2
-rw-r--r--sys/sys/kdb.h2
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 <machine/smp.h>
#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(). */