[PATCH] More informative help for 'mem' command

Michael Snyder msnyder@cygnus.com
Mon Feb 4 15:20:00 GMT 2002


2002-02-04  Michael Snyder  <msnyder@redhat.com>

	* memattr.c (_initialize_mem): Elaborate the help for 'mem' command.

Index: memattr.c
===================================================================
RCS file: /cvs/src/src/gdb/memattr.c,v
retrieving revision 1.7
diff -c -3 -p -r1.7 memattr.c
*** memattr.c	2001/08/02 11:58:29	1.7
--- memattr.c	2002/02/04 23:15:31
*************** _initialize_mem ()
*** 506,512 ****
  {
    add_com ("mem", class_vars, mem_command,
  	   "Define attributes for memory region.\n\
! Usage: mem <lo addr> <hi addr> [<mode> <width> <cache>]");
  
    add_cmd ("mem", class_vars, mem_enable_command,
  	   "Enable memory region.\n\
--- 506,515 ----
  {
    add_com ("mem", class_vars, mem_command,
  	   "Define attributes for memory region.\n\
! Usage: mem <lo addr> <hi addr> [<mode> <width> <cache>], \n\
! where <mode>  may be rw (read/write), ro (read-only) or wo (write-only), \n\
!       <width> may be 8, 16, 32, or 64, and \n\
!       <cache> may be cache or nocache");
  
    add_cmd ("mem", class_vars, mem_enable_command,
  	   "Enable memory region.\n\



More information about the Gdb-patches mailing list