Rev 2947 | Rev 3093 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2947 | Rev 3005 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | #include <sys/types.h> |
40 | #include <sys/types.h> |
41 | 41 | ||
42 | #include "main.h" |
42 | #include "main.h" |
43 | #include "cons.h" |
43 | #include "cons.h" |
44 | #include "dthread.h" |
44 | #include "dthread.h" |
- | 45 | #include "breakpoint.h" |
|
45 | #include "include/arch.h" |
46 | #include "include/arch.h" |
46 | #include "cmd.h" |
47 | #include "cmd.h" |
47 | 48 | ||
48 | static void cmd_break(int argc, char *argv[]); |
49 | static void cmd_break(int argc, char *argv[]); |
49 | static void cmd_ct(int argc, char *argv[]); |
50 | static void cmd_ct(int argc, char *argv[]); |
Line 84... | Line 85... | ||
84 | 85 | ||
85 | (void)argc; |
86 | (void)argc; |
86 | addr = strtoul(argv[1], NULL, 0); |
87 | addr = strtoul(argv[1], NULL, 0); |
87 | 88 | ||
88 | cons_printf("You requested a breakpoint at 0x%x\n", addr); |
89 | cons_printf("You requested a breakpoint at 0x%x\n", addr); |
89 | arch_breakpoint_add(addr); |
90 | // arch_breakpoint_add(addr); |
- | 91 | breakpoint_add(addr); |
|
90 | } |
92 | } |
91 | 93 | ||
92 | static void cmd_ct(int argc, char *argv[]) |
94 | static void cmd_ct(int argc, char *argv[]) |
93 | { |
95 | { |
94 | int tid; |
96 | int tid; |
Line 121... | Line 123... | ||
121 | (void)argc; |
123 | (void)argc; |
122 | bid = strtoul(argv[1], NULL, 0); |
124 | bid = strtoul(argv[1], NULL, 0); |
123 | 125 | ||
124 | printf("remove breakpoint %d\n", bid); |
126 | printf("remove breakpoint %d\n", bid); |
125 | 127 | ||
126 | arch_breakpoint_remove(bid); |
128 | // arch_breakpoint_remove(bid); |
- | 129 | breakpoint_remove(bid); |
|
127 | } |
130 | } |
128 | 131 | ||
129 | 132 | ||
130 | void cmd_go(int argc, char *argv[]) |
133 | void cmd_go(int argc, char *argv[]) |
131 | { |
134 | { |
Line 164... | Line 167... | ||
164 | 167 | ||
165 | static void cmd_lbrk(int argc, char *argv[]) |
168 | static void cmd_lbrk(int argc, char *argv[]) |
166 | { |
169 | { |
167 | (void)argc; (void)argv; |
170 | (void)argc; (void)argv; |
168 | 171 | ||
169 | arch_breakpoint_list(); |
172 | //arch_breakpoint_list(); |
- | 173 | breakpoint_list(); |
|
170 | } |
174 | } |
171 | 175 | ||
172 | 176 | ||
173 | #define BYTES_PER_LINE 16 |
177 | #define BYTES_PER_LINE 16 |
174 | 178 |