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
This commit is contained in:
parent
f2374e0cc5
commit
614e1868d6
@ -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;
|
||||
|
@ -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(). */
|
||||
|
Loading…
Reference in New Issue
Block a user