Rev 635 | Rev 850 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 673 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | 39 | ||
40 | bpinfo_t breakpoints[BKPOINTS_MAX]; |
40 | bpinfo_t breakpoints[BKPOINTS_MAX]; |
41 | SPINLOCK_INITIALIZE(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 bkpts_info = { |
45 | .name = "pbkpt", |
45 | .name = "bkpts", |
46 | .description = "Print breakpoint table.", |
46 | .description = "Print breakpoint table.", |
47 | .func = cmd_print_breakpoints, |
47 | .func = cmd_print_breakpoints, |
48 | .argc = 0, |
48 | .argc = 0, |
49 | }; |
49 | }; |
50 | 50 | ||
Line 262... | Line 262... | ||
262 | int i; |
262 | int i; |
263 | 263 | ||
264 | for (i=0; i<BKPOINTS_MAX; i++) |
264 | for (i=0; i<BKPOINTS_MAX; i++) |
265 | breakpoints[i].address = NULL; |
265 | breakpoints[i].address = NULL; |
266 | 266 | ||
267 | cmd_initialize(&pbkpt_info); |
267 | cmd_initialize(&bkpts_info); |
268 | if (!cmd_register(&pbkpt_info)) |
268 | if (!cmd_register(&bkpts_info)) |
269 | panic("could not register command %s\n", pbkpt_info.name); |
269 | panic("could not register command %s\n", bkpts_info.name); |
270 | 270 | ||
271 | cmd_initialize(&delbkpt_info); |
271 | cmd_initialize(&delbkpt_info); |
272 | if (!cmd_register(&delbkpt_info)) |
272 | if (!cmd_register(&delbkpt_info)) |
273 | panic("could not register command %s\n", delbkpt_info.name); |
273 | panic("could not register command %s\n", delbkpt_info.name); |
274 | 274 |