Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/db_trace.c
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | db_stack_trace_cmd(struct unwind_state *state) | ||||
c_db_sym_t sym; | c_db_sym_t sym; | ||||
u_int reg, i; | u_int reg, i; | ||||
char *sep; | char *sep; | ||||
uint16_t upd_mask; | uint16_t upd_mask; | ||||
bool finished; | bool finished; | ||||
finished = false; | finished = false; | ||||
while (!finished) { | while (!finished) { | ||||
finished = unwind_stack_one(state, 1); | finished = unwind_stack_one(state); | ||||
/* Print the frame details */ | /* Print the frame details */ | ||||
sym = db_search_symbol(state->start_pc, DB_STGY_ANY, &offset); | sym = db_search_symbol(state->start_pc, DB_STGY_ANY, &offset); | ||||
if (sym == C_DB_SYM_NULL) { | if (sym == C_DB_SYM_NULL) { | ||||
value = 0; | value = 0; | ||||
name = "(null)"; | name = "(null)"; | ||||
} else | } else | ||||
db_symbol_values(sym, &name, &value); | db_symbol_values(sym, &name, &value); | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |