From: Andrew Cagney <ac131313@redhat.com>
To: Nick Clifton <nickc@cambridge.redhat.com>
Cc: Andrew Cagney <ac131313@cygnus.com>,
Anthony Green <green@redhat.com>,
gdb-patches@sources.redhat.com
Subject: Re: [rfa] Add -m; Was: ARM sim patch: increase default target memory
Date: Fri, 27 Sep 2002 17:00:00 -0000 [thread overview]
Message-ID: <3D94F133.8070403@redhat.com> (raw)
In-Reply-To: <m3u1qll1v2.fsf@north-pole.nickc.cambridge.redhat.com>
> Hi Andrew,
>
>
>> > I would also suggest that you consider adding support for a
>> > megabyte postfix so that the user could do:
>> > -m 6M
>
>>
>> Good idea, all the sims should do this. Any pointers for the code?
>
>
> Nope - it was just an idea that popped into my head whilst reading
> your code. It should be very straightforward though. Something like
> the code attached to the end of this email maybe ?
Given I've not got to this I've created a bug report.
The original ``-m'' fix is committed.
Andrew
>> >> It also sets the default memory size back to something consistent
>> >> with the other simulators.
>
>> > This will stop the java tests from running, so maybe you should also
>> > add the new switch to the java test harness so that they do not fail.
>
>>
>> Do you know which file?
>
>
> Umm, not sure - libjava.exp maybe ? Anthony ?
>
> Cheers
> Nick
>
> -------------------------------------------------------------------------
> else if (argv[i][0] == '-' && argv[i][1] == 'm')
> {
> char * end_ptr;
> const char * ptr;
> unsigned long size;
>
> if (argv[i][2] != '\0')
> ptr = argv[i] + 2;
> else
> {
> ptr = argv [++i];
>
> if (ptr == NULL)
> {
> sim_callback->printf_filtered
> (sim_callback,
> "Missing argument to -m option\n");
> return NULL;
> }
> }
>
> size = strtoul (ptr, & end_ptr, 0);
> if (end_ptr != ptr)
> {
> switch (* end_ptr)
> {
> case 'k':
> case 'K':
> size *= 1024;
> break;
> case 'm':
> case 'M':
> size *= 1024 * 1024;
> break;
> case 'g':
> case 'G':
> size *= 1024 * 1024 * 1024;
> break;
> case 0:
> break;
> default:
> sim_callback->printf_filtered
> (sim_callback,
> "Unexpected characters at end of -m option\n");
> break;
> }
> }
>
> sim_size (size);
> }
>
>
prev parent reply other threads:[~2002-09-28 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-17 8:52 Anthony Green
2002-03-17 9:13 ` Andrew Cagney
[not found] ` <m3ofhnyt7d.fsf@north-pole.nickc.cambridge.redhat.com>
2002-03-18 13:50 ` Anthony Green
2002-03-18 17:30 ` Andrew Cagney
2002-03-18 23:06 ` Anthony Green
2002-03-19 7:46 ` Andrew Cagney
2002-03-19 8:20 ` Anthony Green
2002-03-19 8:39 ` Andrew Cagney
2002-03-19 9:43 ` Andrew Cagney
2002-04-07 10:06 ` [rfa] Add -m; Was: " Andrew Cagney
2002-04-08 2:34 ` Nick Clifton
2002-04-08 20:05 ` Andrew Cagney
2002-04-09 1:21 ` Nick Clifton
2002-09-27 17:00 ` Andrew Cagney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D94F133.8070403@redhat.com \
--to=ac131313@redhat.com \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=green@redhat.com \
--cc=nickc@cambridge.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox