From 8389628c1be0f40fb94c1d2859138a09616acf06 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 22 Apr 1996 16:53:46 +0000 Subject: updates from Tony Bennett --- c/src/lib/libmisc/monitor/mon-monitor.c | 41 ++++++++++++++------------------- 1 file changed, 17 insertions(+), 24 deletions(-) (limited to 'c/src/lib/libmisc/monitor/mon-monitor.c') diff --git a/c/src/lib/libmisc/monitor/mon-monitor.c b/c/src/lib/libmisc/monitor/mon-monitor.c index 7cf666f78e..a5a3fab131 100644 --- a/c/src/lib/libmisc/monitor/mon-monitor.c +++ b/c/src/lib/libmisc/monitor/mon-monitor.c @@ -1,8 +1,4 @@ /* - * @(#)monitor.c 1.23 - 96/01/03 - * - * - * * RTEMS monitor main body * * TODO: @@ -18,7 +14,7 @@ * should have a separate monitor FILE stream (ala the debugger) * remote request/response stuff should be cleaned up * maybe we can use real rpc?? - * 'info' commadn to print out: + * 'info' command to print out: * interrupt stack location, direction and size * floating point config stuff * interrupt config stuff @@ -262,6 +258,18 @@ rtems_monitor_wakeup(void) status = rtems_event_send(rtems_monitor_task_id, MONITOR_WAKEUP_EVENT); } +void +rtems_monitor_debugger_cmd( + int argc, + char **argv, + unsigned32 command_arg, + boolean verbose +) +{ +#ifdef CPU_INVOKE_DEBUGGER + CPU_INVOKE_DEBUGGER; +#endif +} void rtems_monitor_pause_cmd( @@ -302,19 +310,6 @@ rtems_monitor_continue_cmd( rtems_monitor_suspend(RTEMS_NO_TIMEOUT); } -void -rtems_monitor_debugger_cmd( - int argc, - char **argv, - unsigned32 command_arg, - boolean verbose -) -{ -#ifdef CPU_INVOKE_DEBUGGER - CPU_INVOKE_DEBUGGER; -#endif -} - void rtems_monitor_node_cmd( int argc, @@ -340,8 +335,10 @@ rtems_monitor_node_cmd( break; } - if ((new_node >= 1) && (new_node <= _Configuration_MP_table->maximum_nodes)) - rtems_monitor_default_node = new_node; + if ((new_node >= 1) && + _Configuration_MP_table && + (new_node <= _Configuration_MP_table->maximum_nodes)) + rtems_monitor_default_node = new_node; } @@ -383,11 +380,7 @@ rtems_monitor_symbols_loadup(void) if (rtems_monitor_symbols == 0) return; -#ifdef SIMHPPA - fp = fdopen(8, "r"); /* don't ask; don't tell */ -#else fp = fopen("symbols", "r"); -#endif if (fp == 0) return; -- cgit v1.2.3