Lines Matching refs:bug_ctx
23 CPU_DEBUG_CTX bug_ctx; /* Bedbug context structure */ variable
152 if (bug_ctx.do_break) in do_bedbug_break()
153 (*bug_ctx.do_break) (cmdtp, flag, argc, argv); in do_bedbug_break()
174 if (bug_ctx.break_isr) in do_bedbug_breakpoint()
175 (*bug_ctx.break_isr) (regs); in do_bedbug_breakpoint()
199 if (bug_ctx.clear) in bedbug_main_loop()
200 (*bug_ctx.clear) (bug_ctx.current_bp); in bedbug_main_loop()
202 printf ("Breakpoint %d: ", bug_ctx.current_bp); in bedbug_main_loop()
205 bug_ctx.stopped = 1; in bedbug_main_loop()
206 bug_ctx.regs = regs; in bedbug_main_loop()
208 sprintf (prompt_str, "BEDBUG.%d =>", bug_ctx.current_bp); in bedbug_main_loop()
211 while (bug_ctx.stopped) { in bedbug_main_loop()
232 bug_ctx.regs = NULL; in bedbug_main_loop()
233 bug_ctx.current_bp = 0; in bedbug_main_loop()
249 if (!bug_ctx.stopped) { in do_bedbug_continue()
254 bug_ctx.stopped = 0; in do_bedbug_continue()
274 if (!bug_ctx.stopped) { in do_bedbug_step()
279 if (!find_next_address((unsigned char *) &addr, false, bug_ctx.regs)) in do_bedbug_step()
282 if (bug_ctx.set) in do_bedbug_step()
283 (*bug_ctx.set) (bug_ctx.current_bp, addr); in do_bedbug_step()
285 bug_ctx.stopped = 0; in do_bedbug_step()
305 if (!bug_ctx.stopped) { in do_bedbug_next()
310 if (!find_next_address((unsigned char *) &addr, true, bug_ctx.regs)) in do_bedbug_next()
313 if (bug_ctx.set) in do_bedbug_next()
314 (*bug_ctx.set) (bug_ctx.current_bp, addr); in do_bedbug_next()
316 bug_ctx.stopped = 0; in do_bedbug_next()
338 if (!bug_ctx.stopped) { in do_bedbug_stack()
348 printf ("%5d %08lx\n", depth++, bug_ctx.regs->nip); in do_bedbug_stack()
350 sp = bug_ctx.regs->gpr[1]; in do_bedbug_stack()
377 if (!bug_ctx.stopped) { in do_bedbug_rdump()
382 show_regs (bug_ctx.regs); in do_bedbug_rdump()