This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: ARM sim patch: increase default target memory
> On Mon, 2002-03-18 at 17:30, Andrew Cagney wrote:
>
>> Er, wasn't this going to be properly - add -m to sim_open()?
>
>
> You're implying that the default value must remain 2MB. Isn't this a
> somewhat arbitrary value?
The number is a compromise between a fast simulator startup, sufficient
memory for a typical simulation and unnecessary VM grab. It was also
found to be sufficient for the basic GDB and GCC tests.
From memory, he Java tests run on the MIPS (and PPC?) simulators and
yet there haven't been problems. The MIPS defaults to 2mb, the PPC 1mb.
> I filed a case against the command line bug. This seems like a
> completely different issue.
I don't think that re-compiling GDB is the correct way for a user to
change the size of simulator memory. Instead the user should be able to
fix it at run time. I think that is the real bug here.
enjoy,
Andrew