Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #2012: memory.diff

File memory.diff, 6.3 KB (added by Ric Claus, on 02/02/12 at 19:03:38)

Patchfile for memory.t

  • .t

    old new  
    1616
    1717@item @code{mdump} - Display contents of memory
    1818@item @code{wdump} - Display contents of memory (word)
     19@item @code{ldump} - Display contents of memory (longword)
    1920@item @code{medit} - Modify contents of memory
    2021@item @code{mfill} - File memory with pattern
    2122@item @code{mmove} - Move contents of memory
     
    4142@subheading SYNOPSYS:
    4243
    4344@example
    44 mdump [address [length]]
     45mdump [address [length [size]]]
    4546@end example
    4647
    4748@subheading DESCRIPTION:
    4849
    4950This command displays the contents of memory at the @code{address}
    50 and @code{length} in bytes specified on the command line. 
     51and @code{length} in @code{size} byte units specified on the command line.
     52
     53When @code{size} is not provided, it defaults to @code{1} byte units.
     54Values of @code{1}, @code{2}, and @code{4} are valid; all others will
     55cause an error to be reported.
    5156
    5257When @code{length} is not provided, it defaults to @code{320} which
    5358is twenty lines of output with sixteen bytes of output per line.
     
    8489@findex CONFIGURE_SHELL_NO_COMMAND_MDUMP
    8590@findex CONFIGURE_SHELL_COMMAND_MDUMP
    8691
    87 This command is included in the default shell command set. 
     92This command is included in the default shell command set.
    8893When building a custom command set, define
    8994@code{CONFIGURE_SHELL_COMMAND_MDUMP} to have this
    9095command included.
     
    131136@subheading DESCRIPTION:
    132137
    133138This command displays the contents of memory at the @code{address}
    134 and @code{length} in bytes specified on the command line. 
     139and @code{length} in bytes specified on the command line.
     140
     141This command is equivalent to @code{mdump address length 2}.
    135142
    136143When @code{length} is not provided, it defaults to @code{320} which
    137 is twenty lines of output with sixteen bytes of output per line.
     144is twenty lines of output with eight words of output per line.
    138145
    139146When @code{address} is not provided, it defaults to @code{0x00000000}.
    140147
     
    162169@findex CONFIGURE_SHELL_NO_COMMAND_WDUMP
    163170@findex CONFIGURE_SHELL_COMMAND_WDUMP
    164171
    165 This command is included in the default shell command set. 
     172This command is included in the default shell command set.
    166173When building a custom command set, define
    167174@code{CONFIGURE_SHELL_COMMAND_WDUMP} to have this
    168175command included.
     
    196203@c
    197204@c
    198205@page
     206@subsection ldump - display contents of memory (longword)
     207
     208@pgindex ldump
     209
     210@subheading SYNOPSYS:
     211
     212@example
     213ldump [address [length]]
     214@end example
     215
     216@subheading DESCRIPTION:
     217
     218This command displays the contents of memory at the @code{address}
     219and @code{length} in bytes specified on the command line.
     220
     221This command is equivalent to @code{mdump address length 4}.
     222
     223When @code{length} is not provided, it defaults to @code{320} which
     224is twenty lines of output with four longwords of output per line.
     225
     226When @code{address} is not provided, it defaults to @code{0x00000000}.
     227
     228@subheading EXIT STATUS:
     229
     230This command always returns 0 to indicate success.
     231
     232@subheading NOTES:
     233
     234Dumping memory from a non-existent address may result in an unrecoverable
     235program fault.
     236
     237@subheading EXAMPLES:
     238
     239The following is an example of how to use @code{ldump}:
     240
     241@smallexample
     242SHLL [/] $ ldump 0x02010000 32
     2430x02010000 020108D8 020108C0-020108AC 02010874 ...............t
     2440x02010010 020 0894 02010718-02010640 02010798 ...........@....
     245@end smallexample
     246
     247@subheading CONFIGURATION:
     248
     249@findex CONFIGURE_SHELL_NO_COMMAND_LDUMP
     250@findex CONFIGURE_SHELL_COMMAND_LDUMP
     251
     252This command is included in the default shell command set.
     253When building a custom command set, define
     254@code{CONFIGURE_SHELL_COMMAND_LDUMP} to have this
     255command included.
     256
     257This command can be excluded from the shell command set by
     258defining @code{CONFIGURE_SHELL_NO_COMMAND_LDUMP} when all
     259shell commands have been configured.
     260
     261@subheading PROGRAMMING INFORMATION:
     262
     263@findex rtems_shell_rtems_main_ldump
     264
     265The @code{ldump} is implemented by a C language function
     266which has the following prototype:
     267
     268@example
     269int rtems_shell_rtems_main_ldump(
     270  int    argc,
     271  char **argv
     272);
     273@end example
     274
     275The configuration structure for the @code{ldump} has the
     276following prototype:
     277
     278@example
     279extern rtems_shell_cmd_t rtems_shell_LDUMP_Command;
     280@end example
     281
     282@c
     283@c
     284@c
     285@page
    199286@subsection medit - modify contents of memory
    200287
    201288@pgindex medit
     
    240327@findex CONFIGURE_SHELL_NO_COMMAND_MEDIT
    241328@findex CONFIGURE_SHELL_COMMAND_MEDIT
    242329
    243 This command is included in the default shell command set. 
     330This command is included in the default shell command set.
    244331When building a custom command set, define
    245332@code{CONFIGURE_SHELL_COMMAND_MEDIT} to have this
    246333command included.
     
    303390@subheading EXAMPLES:
    304391
    305392In this example, the address used (@code{0x23d89a0}) as the base
    306 address of the filled area is the end of the stack for the 
     393address of the filled area is the end of the stack for the
    307394Idle thread.  This address was determined manually using gdb and
    308395is very specific to this application and BSP.  The first command
    309396in this example is an @code{mdump} to display the initial contents
     
    327414@findex CONFIGURE_SHELL_NO_COMMAND_MFILL
    328415@findex CONFIGURE_SHELL_COMMAND_MFILL
    329416
    330 This command is included in the default shell command set. 
     417This command is included in the default shell command set.
    331418When building a custom command set, define
    332419@code{CONFIGURE_SHELL_COMMAND_MFILL} to have this
    333420command included.
     
    404491@findex CONFIGURE_SHELL_NO_COMMAND_MMOVE
    405492@findex CONFIGURE_SHELL_COMMAND_MMOVE
    406493
    407 This command is included in the default shell command set. 
     494This command is included in the default shell command set.
    408495When building a custom command set, define
    409496@code{CONFIGURE_SHELL_COMMAND_MMOVE} to have this
    410497command included.
     
    473560available includes the following information:
    474561
    475562@itemize @bullet
    476 @item 
     563@item
    477564@item Currently available memory (in kilobytes)
    478565@item Currently allocated memory (in kilobytes)
    479566@item Maximum amount of memory ever allocated (in kilobytes)
     
    537624@findex CONFIGURE_SHELL_NO_COMMAND_MALLOC
    538625@findex CONFIGURE_SHELL_COMMAND_MALLOC
    539626
    540 This command is included in the default shell command set. 
     627This command is included in the default shell command set.
    541628When building a custom command set, define
    542629@code{CONFIGURE_SHELL_COMMAND_MALLOC} to have this
    543630command included.