48 PROCESS(shell_poke_process,
"poke");
51 "poke <address> <byte>: write byte <byte> to address <address>",
53 PROCESS(shell_peek_process,
"peek");
56 "peek <address>: read a byte from address <address>",
63 const char *args, *next;
87 printf(
"address %p byte 0x%02x\n", address, byte);
97 const char *args, *next;
115 snprintf(buf,
sizeof(buf),
"0x%02x", *address);
123 shell_memdebug_init(
void)
void shell_output_str(struct shell_command *c, char *text1, const char *text2)
Output strings from a shell command.
#define PROCESS_EXIT()
Exit the currently running process.
#define PROCESS_BEGIN()
Define the beginning of a process.
#define NULL
The null pointer.
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
#define PROCESS_END()
Define the end of a process.
unsigned long shell_strtolong(const char *str, const char **retstr)
Convert a string to a number.
void shell_register_command(struct shell_command *c)
Register a command with the shell.
#define PROCESS(name, strname)
Declare a process.
Shell commands for memory debugging
#define SHELL_COMMAND(name, command, description, process)
Define a shell command.