RFA: Support memory size abbreviations

Nick Clifton nickc@redhat.com
Fri Aug 10 11:03:00 GMT 2007


Hi Ben, Hi Frank,

  I had occasion to use the simulator's --memory-size switch the
  other day and I found it frustrating that it did not allow me to
  specify the size in terms of megabytes.  So I developed this patch
  to support this kind of thing.  With the patch applied you can use
  suffixes to specify the size of memory. eg:

    --memory-size=4m   to specify 4 megabytes of memory
    --memory-size=12k  to specify 12 kilobytes of memory
    --memory-size=2G   to specify 2 gigabytes of memory

  May I apply this patch please ?

Cheers
  Nick

sim/common/ChangeLog
2007-08-10  Nick Clifton  <nickc@redhat.com>

	* sim-memopt.c (memory_options): Mention that the
	--memory-size switch accepts suffixes.
        (parse_size): Handle a suffix on the size value.
        * sim-options.c (standard_options): Mention that the mem-size
	switch accepts suffixes.
        (standard_option_handler): Handle a suffix on the size value.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: common.patch
Type: text/x-patch
Size: 4034 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070810/6ccf31a1/attachment.bin>


More information about the Gdb-patches mailing list