More boolean_t -> bool
This commit is contained in:
parent
cfc07219e4
commit
2e4c2c683e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: db_machdep.h,v 1.22 2007/02/21 22:59:53 thorpej Exp $ */
|
||||
/* $NetBSD: db_machdep.h,v 1.23 2007/02/22 05:10:30 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
@ -67,11 +67,11 @@ extern db_regs_t *ddb_regp;
|
||||
#define DDB_FP (&ddb_regp->db_fpstate)
|
||||
|
||||
/* DDB commands not in db_interface.c */
|
||||
void db_dump_ts(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_trap(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_fpstate(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_window(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_stack(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_ts(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_trap(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_fpstate(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_window(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_stack(db_expr_t, bool, db_expr_t, const char *);
|
||||
|
||||
#define PC_REGS(regs) ((regs)->db_tf.tf_pc)
|
||||
#define PC_ADVANCE(regs) do { \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: db_interface.c,v 1.94 2007/02/21 22:59:53 thorpej Exp $ */
|
||||
/* $NetBSD: db_interface.c,v 1.95 2007/02/22 05:10:30 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.94 2007/02/21 22:59:53 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.95 2007/02/22 05:10:30 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
@ -272,26 +272,26 @@ int db_active = 0;
|
||||
extern char *trap_type[];
|
||||
|
||||
void kdb_kbd_trap(struct trapframe64 *);
|
||||
void db_prom_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_lwp_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_proc_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_ctx_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_pcb(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_pv(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_setpcb(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_dtlb(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_itlb(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_dtsb(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_dump_itsb(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_pmap_kernel(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_pload_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_pmap_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_lock_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_traptrace(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_watch(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_pm_extract(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_cpu_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_sir_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_prom_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_lwp_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_proc_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_ctx_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_pcb(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_pv(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_setpcb(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_dtlb(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_itlb(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_dtsb(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_dump_itsb(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_pmap_kernel(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_pload_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_pmap_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_lock_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_traptrace(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_watch(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_pm_extract(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_cpu_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void db_sir_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
|
||||
#ifdef DDB
|
||||
static void db_dump_pmap(struct pmap *);
|
||||
@ -551,14 +551,14 @@ Debugger()
|
||||
}
|
||||
|
||||
void
|
||||
db_prom_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_prom_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
|
||||
prom_abort();
|
||||
}
|
||||
|
||||
void
|
||||
db_dump_dtlb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_dtlb(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
extern void print_dtlb(void);
|
||||
|
||||
@ -591,7 +591,7 @@ db_dump_dtlb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_dump_itlb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_itlb(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
extern void print_itlb(void);
|
||||
|
||||
@ -624,7 +624,7 @@ db_dump_itlb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_pload_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_pload_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
static paddr_t oldaddr = -1;
|
||||
int asi = ASI_PHYS_CACHED;
|
||||
@ -698,7 +698,7 @@ db_dump_pmap(struct pmap *pm)
|
||||
}
|
||||
|
||||
void
|
||||
db_pmap_kernel(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_pmap_kernel(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
extern struct pmap kernel_pmap_;
|
||||
int i, j, full = 0;
|
||||
@ -740,7 +740,7 @@ db_pmap_kernel(db_expr_t addr, int have_addr, db_expr_t count, const char *modif
|
||||
}
|
||||
|
||||
void
|
||||
db_pm_extract(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_pm_extract(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
if (have_addr) {
|
||||
paddr_t pa;
|
||||
@ -754,7 +754,7 @@ db_pm_extract(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_pmap_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_pmap_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct pmap* pm=NULL;
|
||||
int i, j=0, full = 0;
|
||||
@ -790,7 +790,7 @@ db_pmap_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
|
||||
|
||||
void
|
||||
db_lock_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_lock_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
#if 0
|
||||
struct lock *l;
|
||||
@ -818,7 +818,7 @@ extern int tsbsize;
|
||||
void db_dump_tsb_common(pte_t *);
|
||||
|
||||
void
|
||||
db_dump_dtsb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_dtsb(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
|
||||
db_printf("DTSB:\n");
|
||||
@ -826,7 +826,7 @@ db_dump_dtsb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_dump_itsb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_itsb(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
|
||||
db_printf("ITSB:\n");
|
||||
@ -856,9 +856,9 @@ db_dump_tsb_common(pte_t *tsb)
|
||||
}
|
||||
}
|
||||
|
||||
void db_page_cmd(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_page_cmd(db_expr_t, bool, db_expr_t, const char *);
|
||||
void
|
||||
db_page_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_page_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
|
||||
if (!have_addr) {
|
||||
@ -871,7 +871,7 @@ db_page_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_lwp_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_lwp_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct lwp *l;
|
||||
|
||||
@ -891,7 +891,7 @@ db_lwp_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_proc_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_proc_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct proc *p = NULL;
|
||||
|
||||
@ -917,7 +917,7 @@ db_proc_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_ctx_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_ctx_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct proc *p;
|
||||
struct lwp *l;
|
||||
@ -942,7 +942,7 @@ db_ctx_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_dump_pcb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_pcb(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct pcb *pcb;
|
||||
int i;
|
||||
@ -984,7 +984,7 @@ db_dump_pcb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
|
||||
|
||||
void
|
||||
db_setpcb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_setpcb(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct proc *p, *pp;
|
||||
|
||||
@ -1032,7 +1032,7 @@ db_print_trace_entry(struct traptrace *te, int i)
|
||||
}
|
||||
|
||||
void
|
||||
db_traptrace(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_traptrace(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
int i, start = 0, full = 0, reverse = 0;
|
||||
struct traptrace *end;
|
||||
@ -1090,7 +1090,7 @@ db_traptrace(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
* control register.
|
||||
*/
|
||||
void
|
||||
db_watch(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_watch(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
int phys = 0;
|
||||
int read = 0;
|
||||
@ -1193,7 +1193,7 @@ cpu_debug_dump(void)
|
||||
}
|
||||
|
||||
void
|
||||
db_cpu_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_cpu_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
#ifdef MULTIPROCESSOR
|
||||
struct cpu_info *ci;
|
||||
@ -1232,7 +1232,7 @@ db_cpu_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_sir_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_sir_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
|
||||
__asm("sir; nop");
|
||||
@ -1240,7 +1240,7 @@ db_sir_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
|
||||
#include <uvm/uvm.h>
|
||||
|
||||
void db_uvmhistdump(db_expr_t, int, db_expr_t, const char *);
|
||||
void db_uvmhistdump(db_expr_t, bool, db_expr_t, const char *);
|
||||
/*extern void uvmhist_dump(struct uvm_history *);*/
|
||||
#ifdef UVMHIST
|
||||
extern void uvmhist_dump(struct uvm_history *);
|
||||
@ -1248,14 +1248,14 @@ extern void uvmhist_dump(struct uvm_history *);
|
||||
extern struct uvm_history_head uvm_histories;
|
||||
|
||||
void
|
||||
db_uvmhistdump(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_uvmhistdump(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
|
||||
uvmhist_dump(LIST_FIRST(&uvm_histories));
|
||||
}
|
||||
|
||||
#if NESP_SBUS
|
||||
extern void db_esp(db_expr_t, int, db_expr_t, const char*);
|
||||
extern void db_esp(db_expr_t, bool, db_expr_t, const char*);
|
||||
#endif
|
||||
|
||||
const struct db_command db_machine_command_table[] = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: db_trace.c,v 1.37 2007/02/21 23:48:12 thorpej Exp $ */
|
||||
/* $NetBSD: db_trace.c,v 1.38 2007/02/22 05:10:30 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.37 2007/02/21 23:48:12 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.38 2007/02/22 05:10:30 matt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
@ -56,7 +56,7 @@ void db_print_window(uint64_t);
|
||||
void
|
||||
db_stack_trace_print(addr, have_addr, count, modif, pr)
|
||||
db_expr_t addr;
|
||||
int have_addr;
|
||||
bool have_addr;
|
||||
db_expr_t count;
|
||||
const char *modif;
|
||||
void (*pr) (const char *, ...);
|
||||
@ -177,7 +177,7 @@ db_stack_trace_print(addr, have_addr, count, modif, pr)
|
||||
|
||||
|
||||
void
|
||||
db_dump_window(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_window(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
int i;
|
||||
uint64_t frame = DDB_TF->tf_out[6];
|
||||
@ -282,7 +282,7 @@ db_print_window(uint64_t frame)
|
||||
}
|
||||
|
||||
void
|
||||
db_dump_stack(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_stack(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
int i;
|
||||
uint64_t frame, oldframe;
|
||||
@ -339,7 +339,7 @@ db_dump_stack(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
|
||||
|
||||
void
|
||||
db_dump_trap(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_trap(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct trapframe64 *tf;
|
||||
|
||||
@ -420,7 +420,7 @@ db_dump_trap(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
}
|
||||
|
||||
void
|
||||
db_dump_fpstate(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_fpstate(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct fpstate64 *fpstate;
|
||||
|
||||
@ -508,7 +508,7 @@ db_dump_fpstate(db_expr_t addr, int have_addr, db_expr_t count, const char *modi
|
||||
}
|
||||
|
||||
void
|
||||
db_dump_ts(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
|
||||
db_dump_ts(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
|
||||
{
|
||||
struct trapstate *ts;
|
||||
int i, tl;
|
||||
|
Loading…
Reference in New Issue
Block a user