This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Add support for target switches in simulator
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Thu, 16 May 2002 17:24:37 +0100
- Subject: Re: Add support for target switches in simulator
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
nickc@cambridge.redhat.com said:
>
> I would like permission to apply the following patch. It adds the
> ability for simulator backends to parse their own command line
> switches, thus creating target specific simulator options.
>
> I would like this facility in order to be able to add a new switch
> to the ARM simulator - a switch to select which set(s) of SWI
> emulations it should perform.
>
> I have not worked out how this feature would be accessed from GDB.
> My guess is that the switches could be added to the arguments passed
> via sim_open(), but how would a GDB user tell GDB to add these
> switches ?
Hmm, I thought there was already a way to tell the simulator what amount
of memory to use. Couldn't a similar method be employed.
R.
PS. I haven't looked at how that was done, but I recall a discussion
about this recently on the mailing list related to increasing the amount
of memory for a Java testsuite run.