Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/db_trace.c
Show All 37 Lines | |||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/kdb.h> | #include <sys/kdb.h> | ||||
#include <sys/stack.h> | #include <sys/stack.h> | ||||
#include <machine/armreg.h> | #include <machine/armreg.h> | ||||
#include <machine/asm.h> | #include <machine/asm.h> | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#include <machine/db_machdep.h> | #include <machine/db_machdep.h> | ||||
#include <machine/debug_monitor.h> | |||||
#include <machine/pcb.h> | #include <machine/pcb.h> | ||||
#include <machine/stack.h> | #include <machine/stack.h> | ||||
#include <machine/vmparam.h> | #include <machine/vmparam.h> | ||||
#include <ddb/ddb.h> | #include <ddb/ddb.h> | ||||
#include <ddb/db_access.h> | #include <ddb/db_access.h> | ||||
#include <ddb/db_sym.h> | #include <ddb/db_sym.h> | ||||
#include <ddb/db_output.h> | #include <ddb/db_output.h> | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | if (state->registers[PC] < VM_MIN_KERNEL_ADDRESS) { | ||||
finished = true; | finished = true; | ||||
} else if (state->update_mask == 0) { | } else if (state->update_mask == 0) { | ||||
db_printf("Unwind failure (no registers changed)\n"); | db_printf("Unwind failure (no registers changed)\n"); | ||||
finished = true; | finished = true; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
/* XXX stubs */ | |||||
void | void | ||||
db_md_list_watchpoints() | db_md_list_watchpoints() | ||||
{ | { | ||||
dbg_show_watchpoint(); | |||||
andrew: It doesn't seem this is defined on arm < v6. | |||||
} | } | ||||
int | int | ||||
db_md_clr_watchpoint(db_expr_t addr, db_expr_t size) | db_md_clr_watchpoint(db_expr_t addr, db_expr_t size) | ||||
{ | { | ||||
return (0); | |||||
return (dbg_remove_watchpoint(addr, size)); | |||||
} | } | ||||
int | int | ||||
db_md_set_watchpoint(db_expr_t addr, db_expr_t size) | db_md_set_watchpoint(db_expr_t addr, db_expr_t size) | ||||
{ | { | ||||
return (0); | |||||
return (dbg_setup_watchpoint(addr, size, HW_WATCHPOINT_RW)); | |||||
} | } | ||||
int | int | ||||
db_trace_thread(struct thread *thr, int count) | db_trace_thread(struct thread *thr, int count) | ||||
{ | { | ||||
struct unwind_state state; | struct unwind_state state; | ||||
struct pcb *ctx; | struct pcb *ctx; | ||||
Show All 30 Lines |
It doesn't seem this is defined on arm < v6.