diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 17:22:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 17:22:59 +0000 |
commit | 32e2554f105163017052572a1830f3caa19ba625 (patch) | |
tree | 3486575ad9ab7b4bfdfa253ed51d62954e57b920 /c/src/libmisc/monitor/monitor.h | |
parent | Patch from Chris Johns <cjohns@cybertec.com.au> to enhance network (diff) | |
download | rtems-32e2554f105163017052572a1830f3caa19ba625.tar.bz2 |
Patch rtems-4.5-beta3-mon.diff from Chris Johns <cjohns@cybertec.com.au>
to:
I have also added the ability to register and unregister commands. This
allows me to create a set of monitor commands for the network stack plus
basic memory dump/patch commands (needs a working probe interface). I
will also look at a basic ls/cd/rm/mv/cp command set at some stage.
I have been thinking about changing the monitor in the future to more
like a light weight RTEMS shell, `eshell' for embedded shell. This is a
story for another day but is a process or getting the commands to map to
the filesystem (eg, major=commands, minor=command) and supporting an
environment. The filesystem provide a structure for the commands.
Diffstat (limited to '')
-rw-r--r-- | c/src/libmisc/monitor/monitor.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/c/src/libmisc/monitor/monitor.h b/c/src/libmisc/monitor/monitor.h index a9584808f3..ef0e099ac7 100644 --- a/c/src/libmisc/monitor/monitor.h +++ b/c/src/libmisc/monitor/monitor.h @@ -294,9 +294,9 @@ struct rtems_monitor_command_entry_s { char *usage; /* usage string for the command */ unsigned32 arguments_required; /* # of required args */ rtems_monitor_command_function_t command_function; - /* Some argument for the command */ - unsigned32 command_arg; + unsigned32 command_arg; + struct rtems_monitor_command_entry_s *next; }; typedef void *(*rtems_monitor_object_next_fn)(void *, void *, rtems_id *); @@ -325,6 +325,9 @@ void rtems_monitor_continue_cmd(int, char **, unsigned32, boolean); void rtems_monitor_debugger_cmd(int, char **, unsigned32, boolean); void rtems_monitor_node_cmd(int, char **, unsigned32, boolean); void rtems_monitor_symbols_loadup(void); +int rtems_monitor_insert_cmd(rtems_monitor_command_entry_t *); +int rtems_monitor_erase_cmd(rtems_monitor_command_entry_t *); + void rtems_monitor_task(rtems_task_argument); /* server.c */ |