Use bool instead of boolean_t here. No reason to use boolean_t.

Also, stop passing FALSE to a bool parameter.
This commit is contained in:
Warner Losh 2018-04-16 13:52:40 +00:00
parent 9d89a9f326
commit 8b999cc69b

View File

@ -216,7 +216,7 @@ db_numargs(fp)
int inst;
int args;
argp = (char *)db_get_value((int)&fp->f_retaddr, 4, FALSE);
argp = (char *)db_get_value((int)&fp->f_retaddr, 4, false);
/*
* XXX etext is wrong for LKMs. We should attempt to interpret
* the instruction at the return address in all cases. This
@ -226,7 +226,7 @@ db_numargs(fp)
args = -1;
} else {
retry:
inst = db_get_value((int)argp, 4, FALSE);
inst = db_get_value((int)argp, 4, false);
if ((inst & 0xff) == 0x59) /* popl %ecx */
args = 1;
else if ((inst & 0xffff) == 0xc483) /* addl $Ibs, %esp */
@ -255,7 +255,7 @@ db_print_stack_entry(name, narg, argnp, argp, callpc, frame)
while (n) {
if (argnp)
db_printf("%s=", *argnp++);
db_printf("%r", db_get_value((int)argp, 4, FALSE));
db_printf("%r", db_get_value((int)argp, 4, false));
argp++;
if (--n != 0)
db_printf(",");
@ -304,8 +304,8 @@ db_nextframe(struct i386_frame **fp, db_addr_t *ip, struct thread *td)
c_db_sym_t sym;
const char *name;
eip = db_get_value((int) &(*fp)->f_retaddr, 4, FALSE);
ebp = db_get_value((int) &(*fp)->f_frame, 4, FALSE);
eip = db_get_value((int) &(*fp)->f_retaddr, 4, false);
ebp = db_get_value((int) &(*fp)->f_frame, 4, false);
/*
* Figure out frame type. We look at the address just before
@ -435,7 +435,7 @@ db_backtrace(struct thread *td, struct trapframe *tf, struct i386_frame *frame,
db_expr_t offset;
c_db_sym_t sym;
int instr, narg;
boolean_t first;
bool first;
if (db_segsize(tf) == 16) {
db_printf(
@ -473,13 +473,13 @@ db_backtrace(struct thread *td, struct trapframe *tf, struct i386_frame *frame,
instr = (int)(kdb_frame + 1);
else
instr = (int)&kdb_frame->tf_esp;
pc = db_get_value(instr, 4, FALSE);
pc = db_get_value(instr, 4, false);
}
if (count == -1)
count = 1024;
first = TRUE;
first = true;
while (count-- && !db_pager_quit) {
sym = db_search_symbol(pc, DB_STGY_ANY, &offset);
db_symbol_values(sym, &name, NULL);
@ -497,7 +497,7 @@ db_backtrace(struct thread *td, struct trapframe *tf, struct i386_frame *frame,
*/
actframe = frame;
if (first) {
first = FALSE;
first = false;
if (sym == C_DB_SYM_NULL && sp != 0) {
/*
* If a symbol couldn't be found, we've probably
@ -506,13 +506,13 @@ db_backtrace(struct thread *td, struct trapframe *tf, struct i386_frame *frame,
*/
db_print_stack_entry(name, 0, 0, 0, pc,
NULL);
pc = db_get_value(sp, 4, FALSE);
pc = db_get_value(sp, 4, false);
if (db_search_symbol(pc, DB_STGY_PROC,
&offset) == C_DB_SYM_NULL)
break;
continue;
} else if (tf != NULL) {
instr = db_get_value(pc, 4, FALSE);
instr = db_get_value(pc, 4, false);
if ((instr & 0xffffff) == 0x00e58955) {
/* pushl %ebp; movl %esp, %ebp */
actframe = (void *)(get_esp(tf) - 4);
@ -554,7 +554,7 @@ db_backtrace(struct thread *td, struct trapframe *tf, struct i386_frame *frame,
if (actframe != frame) {
/* `frame' belongs to caller. */
pc = (db_addr_t)
db_get_value((int)&actframe->f_retaddr, 4, FALSE);
db_get_value((int)&actframe->f_retaddr, 4, false);
continue;
}
@ -588,7 +588,7 @@ db_trace_self(void)
__asm __volatile("movl %%ebp,%0" : "=r" (ebp));
frame = (struct i386_frame *)ebp;
callpc = (db_addr_t)db_get_value((int)&frame->f_retaddr, 4, FALSE);
callpc = (db_addr_t)db_get_value((int)&frame->f_retaddr, 4, false);
frame = frame->f_frame;
db_backtrace(curthread, NULL, frame, callpc, 0, -1);
}