Rev 2923 | Rev 2936 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2923 | Rev 2935 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | #include "main.h" |
42 | #include "main.h" |
43 | #include "include/arch.h" |
43 | #include "include/arch.h" |
44 | #include "cmd.h" |
44 | #include "cmd.h" |
45 | 45 | ||
46 | static void cmd_break(int argc, char *argv[]); |
46 | static void cmd_break(int argc, char *argv[]); |
- | 47 | void cmd_go(int argc, char *argv[]); |
|
47 | void cmd_help(int argc, char *argv[]); |
48 | void cmd_help(int argc, char *argv[]); |
48 | static void cmd_read(int argc, char *argv[]); |
49 | static void cmd_read(int argc, char *argv[]); |
49 | static void cmd_quit(int argc, char *argv[]); |
50 | static void cmd_quit(int argc, char *argv[]); |
50 | 51 | ||
51 | volatile bool quit = false; |
52 | volatile bool quit = false; |
52 | 53 | ||
53 | cmd_desc_t cmd_table[] = { |
54 | cmd_desc_t cmd_table[] = { |
54 | { 1, "break", cmd_break }, |
55 | { 1, "break", cmd_break }, |
- | 56 | { 0, "go", cmd_go }, |
|
55 | { 0, "help", cmd_help }, |
57 | { 0, "help", cmd_help }, |
56 | { 2, "read", cmd_read }, |
58 | { 2, "read", cmd_read }, |
57 | { 0, "quit", cmd_quit }, |
59 | { 0, "quit", cmd_quit }, |
58 | { -1, NULL, NULL } |
60 | { -1, NULL, NULL } |
59 | }; |
61 | }; |
Line 67... | Line 69... | ||
67 | 69 | ||
68 | printf("You requested a breakpoint at 0x%x\n", addr); |
70 | printf("You requested a breakpoint at 0x%x\n", addr); |
69 | arch_breakpoint_add(addr); |
71 | arch_breakpoint_add(addr); |
70 | } |
72 | } |
71 | 73 | ||
- | 74 | void cmd_go(int argc, char *argv[]) |
|
- | 75 | { |
|
- | 76 | fcv_broadcast(&go_cv); |
|
- | 77 | } |
|
- | 78 | ||
72 | void cmd_help(int argc, char *argv[]) |
79 | void cmd_help(int argc, char *argv[]) |
73 | { |
80 | { |
74 | int i; |
81 | int i; |
75 | 82 | ||
76 | (void)argc; (void)argv; |
83 | (void)argc; (void)argv; |