diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-11-16 17:51:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-11-16 17:51:02 +0000 |
commit | c8b3806d1a71fafbec35662a1381814fff167157 (patch) | |
tree | 824bac48d6523010f32fe82ace6f10752fe75c06 /cpukit/libmisc | |
parent | 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-c8b3806d1a71fafbec35662a1381814fff167157.tar.bz2 |
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c: Move node code into multiprocessing
ifdef.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/monitor/mon-monitor.c | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/cpukit/libmisc/monitor/mon-monitor.c b/cpukit/libmisc/monitor/mon-monitor.c index 35b22674af..dedcbba524 100644 --- a/cpukit/libmisc/monitor/mon-monitor.c +++ b/cpukit/libmisc/monitor/mon-monitor.c @@ -106,6 +106,7 @@ static const rtems_monitor_command_entry_t rtems_monitor_commands[] = { { 0 }, &rtems_monitor_commands[6], }, +#if defined(RTEMS_MULTIPROCESSING) { "node", "Specify default node number for commands that take id's.\n" " node [ node number ]", @@ -114,6 +115,7 @@ static const rtems_monitor_command_entry_t rtems_monitor_commands[] = { { 0 }, &rtems_monitor_commands[7], }, +#endif { "symbol", "Display value associated with specified symbol. " "Defaults to displaying all known symbols.\n" @@ -359,6 +361,7 @@ void rtems_monitor_continue_cmd( rtems_monitor_suspend(RTEMS_NO_TIMEOUT); } +#if defined(RTEMS_MULTIPROCESSING) void rtems_monitor_node_cmd( int argc, char **argv, @@ -366,30 +369,28 @@ void rtems_monitor_node_cmd( bool verbose __attribute__((unused)) ) { - uint32_t new_node = rtems_monitor_default_node; + uint32_t new_node = rtems_monitor_default_node; - switch (argc) - { - case 1: /* no node, just set back to ours */ - new_node = rtems_monitor_node; - break; + switch (argc) { + case 1: /* no node, just set back to ours */ + new_node = rtems_monitor_node; + break; - case 2: - new_node = strtoul(argv[1], 0, 0); - break; + case 2: + new_node = strtoul(argv[1], 0, 0); + break; - default: - fprintf(stdout,"invalid syntax, try 'help node'\n"); - break; - } + default: + fprintf(stdout,"invalid syntax, try 'help node'\n"); + break; + } - #if defined(RTEMS_MULTIPROCESSING) - if ((new_node >= 1) && - _Configuration_MP_table && - (new_node <= _Configuration_MP_table->maximum_nodes)) - rtems_monitor_default_node = new_node; - #endif + if ((new_node >= 1) && + _Configuration_MP_table && + (new_node <= _Configuration_MP_table->maximum_nodes)) + rtems_monitor_default_node = new_node; } +#endif /* |