Changes in kernel/generic/src/console/cmd.c [df58e44:40fb017] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
rdf58e44 r40fb017 111 111 112 112 #ifdef CONFIG_TEST 113 113 114 /* Data and methods for 'test' command. */ 114 115 static char test_buf[MAX_CMDLINE + 1]; … … 148 149 .argv = bench_argv 149 150 }; 150 #endif 151 152 #endif /* CONFIG_TEST */ 151 153 152 154 /* Data and methods for 'description' command. */ … … 383 385 }; 384 386 387 #ifdef CONFIG_UDEBUG 388 385 389 /* Data and methods for 'btrace' command */ 386 390 static int cmd_btrace(cmd_arg_t *argv); … … 395 399 .argv = &btrace_argv 396 400 }; 401 402 #endif /* CONFIG_UDEBUG */ 397 403 398 404 static int cmd_sched(cmd_arg_t *argv); … … 492 498 493 499 static cmd_info_t *basic_commands[] = { 494 &btrace_info,495 500 &call0_info, 496 501 &mcall0_info, … … 523 528 &bench_info, 524 529 #endif 530 #ifdef CONFIG_UDEBUG 531 &btrace_info, 532 #endif 525 533 NULL 526 534 }; … … 545 553 for (i = 0; basic_commands[i]; i++) { 546 554 cmd_initialize(basic_commands[i]); 547 if (!cmd_register(basic_commands[i])) 548 printf("Cannot register command %s\n", basic_commands[i]->name); 555 } 556 557 for (i = 0; basic_commands[i]; i++) { 558 if (!cmd_register(basic_commands[i])) { 559 printf("Cannot register command %s\n", 560 basic_commands[i]->name); 561 } 549 562 } 550 563 } … … 980 993 } 981 994 995 #ifdef CONFIG_UDEBUG 996 982 997 /** Command for printing thread stack trace 983 998 * … … 992 1007 return 1; 993 1008 } 1009 1010 #endif /* CONFIG_UDEBUG */ 994 1011 995 1012 /** Command for printing scheduler information
Note:
See TracChangeset
for help on using the changeset viewer.