Don't enter the debugger if KDB_UNATTENDED is set or if
debug.debugger_on_panic=0. MFC after: 2 weeks
This commit is contained in:
parent
cf7152ab4c
commit
8cb038b4b2
@ -623,7 +623,7 @@ trap_fatal(frame, eva)
|
||||
}
|
||||
|
||||
#ifdef KDB
|
||||
if (kdb_trap(type, 0, frame))
|
||||
if ((debugger_on_panic || kdb_active) && kdb_trap(type, 0, frame))
|
||||
return;
|
||||
#endif
|
||||
printf("trap number = %d\n", type);
|
||||
|
@ -71,7 +71,6 @@ extern db_expr_t db_maxoff;
|
||||
extern int db_indent;
|
||||
extern int db_inst_count;
|
||||
extern int db_load_count;
|
||||
extern int debugger_on_panic;
|
||||
extern int db_store_count;
|
||||
extern db_expr_t db_radix;
|
||||
extern db_expr_t db_max_width;
|
||||
|
@ -798,7 +798,7 @@ trap_fatal(frame, eva)
|
||||
}
|
||||
|
||||
#ifdef KDB
|
||||
if (kdb_trap(type, 0, frame))
|
||||
if ((debugger_on_panic || kdb_active) && kdb_trap(type, 0, frame))
|
||||
return;
|
||||
#endif
|
||||
printf("trap number = %d\n", type);
|
||||
|
@ -93,8 +93,6 @@ int badaddr_read(void *, size_t, int *);
|
||||
|
||||
extern char *syscallnames[];
|
||||
|
||||
extern int debugger_on_panic; /* XXX */
|
||||
|
||||
struct powerpc_exception {
|
||||
u_int vector;
|
||||
char *name;
|
||||
|
@ -93,8 +93,6 @@ int badaddr_read(void *, size_t, int *);
|
||||
|
||||
extern char *syscallnames[];
|
||||
|
||||
extern int debugger_on_panic; /* XXX */
|
||||
|
||||
struct powerpc_exception {
|
||||
u_int vector;
|
||||
char *name;
|
||||
|
@ -57,6 +57,7 @@ struct thread;
|
||||
struct trapframe;
|
||||
|
||||
extern int 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(). */
|
||||
extern struct pcb *kdb_thrctx; /* Current context. */
|
||||
|
Loading…
Reference in New Issue
Block a user