forked from Imagelibrary/rtems
2010-04-05 Thomas Znidar <t.znidar@embed-it.com>
* libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h: Add reset command.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-04-05 Thomas Znidar <t.znidar@embed-it.com>
|
||||
|
||||
* libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h: Add reset
|
||||
command.
|
||||
|
||||
2010-04-04 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libnetworking/lib/rtems_bspnet_ntp.c: #include <unistd.h>.
|
||||
|
||||
@@ -228,6 +228,13 @@ static const rtems_monitor_command_entry_t rtems_monitor_commands[] = {
|
||||
rtems_monitor_fatal_cmd,
|
||||
{ .status_code = RTEMS_SUCCESSFUL }, /* exit value */
|
||||
&rtems_monitor_commands[20],
|
||||
},
|
||||
{ "reset",
|
||||
"(SW)Resets the System.",
|
||||
0,
|
||||
rtems_monitor_reset_cmd,
|
||||
{ 0 },
|
||||
&rtems_monitor_commands[21],
|
||||
},
|
||||
#ifdef RTEMS_POSIX_API
|
||||
{ "pthread",
|
||||
@@ -237,11 +244,11 @@ static const rtems_monitor_command_entry_t rtems_monitor_commands[] = {
|
||||
0,
|
||||
rtems_monitor_object_cmd,
|
||||
{ RTEMS_MONITOR_OBJECT_PTHREAD },
|
||||
&rtems_monitor_commands[21],
|
||||
&rtems_monitor_commands[22],
|
||||
},
|
||||
#define RTEMS_MONITOR_DEBUGGER_NEXT 22
|
||||
#define RTEMS_MONITOR_DEBUGGER_NEXT 23
|
||||
#else
|
||||
#define RTEMS_MONITOR_DEBUGGER_NEXT 21
|
||||
#define RTEMS_MONITOR_DEBUGGER_NEXT 22
|
||||
#endif
|
||||
#ifdef CPU_INVOKE_DEBUGGER
|
||||
{ "debugger",
|
||||
@@ -285,6 +292,17 @@ rtems_monitor_suspend(rtems_interval timeout)
|
||||
return status;
|
||||
}
|
||||
|
||||
void __attribute__((weak))
|
||||
rtems_monitor_reset_cmd(
|
||||
int argc,
|
||||
char **argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose
|
||||
)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
rtems_monitor_wakeup(void)
|
||||
{
|
||||
|
||||
@@ -375,6 +375,7 @@ void rtems_monitor_pause_cmd(int, char **, const rtems_monitor_command_arg_t*
|
||||
void rtems_monitor_fatal_cmd(int, char **, const rtems_monitor_command_arg_t*, bool);
|
||||
void rtems_monitor_continue_cmd(int, char **, const rtems_monitor_command_arg_t*, bool);
|
||||
void rtems_monitor_debugger_cmd(int, char **, const rtems_monitor_command_arg_t*, bool);
|
||||
void rtems_monitor_reset_cmd(int, char **, rtems_monitor_command_arg_t*, bool);
|
||||
void rtems_monitor_node_cmd(int, char **, const rtems_monitor_command_arg_t*, bool);
|
||||
void rtems_monitor_symbols_loadup(void);
|
||||
int rtems_monitor_insert_cmd(rtems_monitor_command_entry_t *);
|
||||
|
||||
Reference in New Issue
Block a user