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