#include <command.h>
#include <linux/ctype.h>
#include <net.h>
-
-#include <cmd_bedbug.h>
+#include <bedbug/type.h>
#include <bedbug/bedbug.h>
#include <bedbug/regs.h>
#include <bedbug/ppc.h>
-#include <elf.h>
#if (CONFIG_COMMANDS & CFG_CMD_BEDBUG)
dis_last_len = len;
return 0;
} /* do_bedbug_dis */
-
-
+U_BOOT_CMD(
+ ds, 3, 1, do_bedbug_dis,
+ "ds - disassemble memory\n",
+ "ds <address> [# instructions]\n"
+);
\f
/* ======================================================================
* Entry point from the interpreter to the assembler. Assembles
else
{
printf( "*** Error: %s ***\n", asm_error_str( asm_err ));
- rcode = 1;
+ rcode = 1;
}
}
else
}
return rcode;
} /* do_bedbug_asm */
-
-
+U_BOOT_CMD(
+ as, 2, 0, do_bedbug_asm,
+ "as - assemble memory\n",
+ "as <address>\n"
+);
\f
/* ======================================================================
* Used to set a break point from the interpreter. Simply calls into the
return 0;
} /* do_bedbug_break */
-
-
+U_BOOT_CMD(
+ break, 3, 0, do_bedbug_break,
+ "break - set or clear a breakpoint\n",
+ " - Set or clear a breakpoint\n"
+ "break <address> - Break at an address\n"
+ "break off <bp#> - Disable breakpoint.\n"
+ "break show - List breakpoints.\n"
+);
\f
/* ======================================================================
* Called from the debug interrupt routine. Simply calls the CPU-specific
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_continue */
-
-
+U_BOOT_CMD(
+ continue, 1, 0, do_bedbug_continue,
+ "continue- continue from a breakpoint\n",
+ " - continue from a breakpoint.\n"
+);
\f
/* ======================================================================
* Interpreter command to continue to the next instruction, stepping into
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_step */
-
-
+U_BOOT_CMD(
+ step, 1, 1, do_bedbug_step,
+ "step - single step execution.\n",
+ " - single step execution.\n"
+);
\f
/* ======================================================================
* Interpreter command to continue to the next instruction, stepping over
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_next */
-
-
+U_BOOT_CMD(
+ next, 1, 1, do_bedbug_next,
+ "next - single step execution, stepping over subroutines.\n",
+ " - single step execution, stepping over subroutines.\n"
+);
\f
/* ======================================================================
* Interpreter command to print the current stack. This assumes an EABI
}
return 0;
} /* do_bedbug_stack */
-
-
+U_BOOT_CMD(
+ where, 1, 1, do_bedbug_stack,
+ "where - Print the running stack.\n",
+ " - Print the running stack.\n"
+);
\f
/* ======================================================================
* Interpreter command to dump the registers. Calls the CPU-specific
show_regs( bug_ctx.regs );
return 0;
} /* do_bedbug_rdump */
-
-
+U_BOOT_CMD(
+ rdump, 1, 1, do_bedbug_rdump,
+ "rdump - Show registers.\n",
+ " - Show registers.\n"
+);
/* ====================================================================== */
#endif /* CFG_CMD_BEDBUG */