2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>

* libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add malloc command
	with info and dump as replacement for older command. Fix what looked
	like a typo for mount sub-commands.
	* libmisc/shell/main_mallocinfo.c: New file.
	* libmisc/shell/main_mallocdump.c: Removed.
This commit is contained in:
Joel Sherrill
2007-12-17 22:37:29 +00:00
parent ad9255bedd
commit e586588471
5 changed files with 87 additions and 49 deletions

View File

@@ -51,7 +51,7 @@ extern rtems_shell_cmd_t rtems_Shell_BLKSYNC_Command;
extern rtems_shell_cmd_t rtems_Shell_CPUUSE_Command;
extern rtems_shell_cmd_t rtems_Shell_STACKUSE_Command;
extern rtems_shell_cmd_t rtems_Shell_MALLOC_DUMP_Command;
extern rtems_shell_cmd_t rtems_Shell_MALLOC_INFO_Command;
extern rtems_shell_cmd_t *rtems_Shell_Initial_commands[];
@@ -280,9 +280,9 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[];
* Malloc family commands
*/
#if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
!defined(CONFIGURE_SHELL_COMMAND_MALLOC_DUMP)) || \
defined(CONFIGURE_SHELL_COMMAND_MALLOC_DUMP)
&rtems_Shell_MALLOC_DUMP_Command,
!defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO)) || \
defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO)
&rtems_Shell_MALLOC_INFO_Command,
#endif
/*
@@ -298,8 +298,8 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[];
* The mount command's support file system types.
*/
#if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
!defined(CONFIGURE_SHELL_COMMAND_MALLOC_DUMP)) || \
defined(CONFIGURE_SHELL_COMMAND_MALLOC_DUMP)
!defined(CONFIGURE_SHELL_COMMAND_MOUNT)) || \
defined(CONFIGURE_SHELL_COMMAND_UNMOUNT)
rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[] = {
#if defined(CONFIGURE_SHELL_MOUNT_MSDOS)
&rtems_Shell_Mount_MSDOS,