Rev 615 | Rev 631 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 615 | Rev 623 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #include <arch.h> |
36 | #include <arch.h> |
37 | #include <arch/cp0.h> |
37 | #include <arch/cp0.h> |
38 | #include <func.h> |
38 | #include <func.h> |
39 | 39 | ||
40 | bpinfo_t breakpoints[BKPOINTS_MAX]; |
40 | bpinfo_t breakpoints[BKPOINTS_MAX]; |
41 | spinlock_t bkpoint_lock; |
41 | SPINLOCK_INITIALIZE(bkpoint_lock); |
42 | 42 | ||
43 | static int cmd_print_breakpoints(cmd_arg_t *argv); |
43 | static int cmd_print_breakpoints(cmd_arg_t *argv); |
44 | static cmd_info_t pbkpt_info = { |
44 | static cmd_info_t pbkpt_info = { |
45 | .name = "pbkpt", |
45 | .name = "pbkpt", |
46 | .description = "Print breakpoint table.", |
46 | .description = "Print breakpoint table.", |
Line 179... | Line 179... | ||
179 | { |
179 | { |
180 | int i; |
180 | int i; |
181 | 181 | ||
182 | for (i=0; i<BKPOINTS_MAX; i++) |
182 | for (i=0; i<BKPOINTS_MAX; i++) |
183 | breakpoints[i].address = NULL; |
183 | breakpoints[i].address = NULL; |
184 | spinlock_initialize(&bkpoint_lock, "breakpoint_lock"); |
- | |
185 | 184 | ||
186 | cmd_initialize(&pbkpt_info); |
185 | cmd_initialize(&pbkpt_info); |
187 | if (!cmd_register(&pbkpt_info)) |
186 | if (!cmd_register(&pbkpt_info)) |
188 | panic("could not register command %s\n", pbkpt_info.name); |
187 | panic("could not register command %s\n", pbkpt_info.name); |
189 | 188 |