Don't grovel interrupt-related info here; if a platform wants to
do that, let it do that in a way it can control.
This commit is contained in:
parent
a2fa0b1029
commit
b9caa4cbc7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_interface.c,v 1.11 2001/11/23 21:18:30 thorpej Exp $ */
|
||||
/* $NetBSD: db_interface.c,v 1.12 2001/11/28 00:19:53 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Scott K. Stevens
|
||||
|
@ -300,13 +300,11 @@ cpu_Debugger()
|
|||
asm(".word 0xe7ffffff");
|
||||
}
|
||||
|
||||
void db_show_intrchain_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
|
||||
void db_show_panic_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
|
||||
void db_show_frame_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
|
||||
|
||||
const struct db_command db_machine_command_table[] = {
|
||||
{ "frame", db_show_frame_cmd, 0, NULL },
|
||||
{ "intrchain", db_show_intrchain_cmd, 0, NULL },
|
||||
{ "panic", db_show_panic_cmd, 0, NULL },
|
||||
#ifdef ARM32_DB_COMMANDS
|
||||
ARM32_DB_COMMANDS,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_machdep.c,v 1.5 2001/09/05 17:08:41 matt Exp $ */
|
||||
/* $NetBSD: db_machdep.c,v 1.6 2001/11/28 00:19:53 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Mark Brinicombe
|
||||
|
@ -39,43 +39,6 @@
|
|||
#include <ddb/db_sym.h>
|
||||
#include <ddb/db_output.h>
|
||||
|
||||
#include <machine/intr.h>
|
||||
|
||||
void
|
||||
db_show_intrchain_cmd(addr, have_addr, count, modif)
|
||||
db_expr_t addr;
|
||||
int have_addr;
|
||||
db_expr_t count;
|
||||
char *modif;
|
||||
{
|
||||
#ifndef NEWINTR
|
||||
int loop;
|
||||
struct irqhandler *ptr;
|
||||
char *name;
|
||||
db_expr_t offset;
|
||||
|
||||
for (loop = 0; loop < NIRQS; ++loop) {
|
||||
ptr = irqhandlers[loop];
|
||||
if (ptr) {
|
||||
db_printf("IRQ %d\n", loop);
|
||||
|
||||
while (ptr) {
|
||||
db_printf(" %-13s %d ", ptr->ih_name, ptr->ih_level);
|
||||
db_find_sym_and_offset((u_int)ptr->ih_func, &name, &offset);
|
||||
if (name == NULL)
|
||||
name = "?";
|
||||
|
||||
db_printf("%s(", name);
|
||||
db_printsym((u_int)ptr->ih_func, DB_STGY_PROC,
|
||||
db_printf);
|
||||
db_printf(") %08x\n", (u_int)ptr->ih_arg);
|
||||
ptr = ptr->ih_next;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* NEWINTR */
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
db_show_panic_cmd(addr, have_addr, count, modif)
|
||||
|
|
Loading…
Reference in New Issue