Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: Add support for target switches in simulator
@ 2002-05-20  7:49 Nick Clifton
  0 siblings, 0 replies; 16+ messages in thread
From: Nick Clifton @ 2002-05-20  7:49 UTC (permalink / raw)
  To: gdb-patches

Hi Guys,

  I have checked the patch in.  It occurs to me however, that I failed
  to document the new feature.  So how about the following patch ?

  (I am not sure about the exact formatting for GDB texinfo additions,
  but I gave it my best shot).

  May I apply this patch too ?

Cheers
        Nick

gdb/ChangeLog
2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>

	* NEWS: Mention new command line switch supported by arm
	simulator.
        * doc/gdb.texinfo: Document new command line switch supported
	by arm simulator.


Index: gdb/NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.70
diff -c -3 -p -w -r1.70 NEWS
*** gdb/NEWS	17 May 2002 18:02:20 -0000	1.70
--- gdb/NEWS	20 May 2002 14:46:12 -0000
***************
*** 3,8 ****
--- 3,11 ----
  
  *** Changes since GDB 5.2:
  
+ * ARM simulator now supports a command line switch to select which SWI
+   protocols to emulate.  Use --swi-support={none|demon|angel|redboot}.
+ 
  * GDB now supports C/C++ preprocessor macros.
  
  GDB now expands preprocessor macro invocations in C/C++ expressions,

Index: gdb/doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.100
diff -c -3 -p -w -r1.100 gdb.texinfo
*** gdb/doc/gdb.texinfo	17 May 2002 18:00:03 -0000	1.100
--- gdb/doc/gdb.texinfo	20 May 2002 14:46:18 -0000
*************** monitor, or with the EmbeddedICE JTAG de
*** 11315,11320 ****
--- 11315,11327 ----
  @item target rdp @var{dev}
  ARM Demon monitor.
  
+ @kindex target sim
+ @kindex --swi-support
+ @item target sim @r{[}@samp{--swi-support=@var{none|demon|angel|redboot|all}}@r{]}
+ Use this switch to run on the builtin ARM simulator·  The optional
+ @samp{--swi-support} switch can be used to select which SWI
+ protocol(s) to support.  By default all three are supported.
+ 
  @end table
  
  @node H8/300




^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Add support for RedBoot SWIs to ARM Simulator
@ 2002-05-09  4:11 Richard Earnshaw
  2002-05-16  9:16 ` Add support for target switches in simulator Nick Clifton
  0 siblings, 1 reply; 16+ messages in thread
From: Richard Earnshaw @ 2002-05-09  4:11 UTC (permalink / raw)
  To: Nick Clifton; +Cc: Richard.Earnshaw, gdb-patches

> Hi Richard,
> 
> > This may trample on the toes of somebody using that SWI as a real
> > trap into an OS.
> 
> Well it would if they were then trying to run code compiled for that
> OS on the simulator.
> 
> > We probably should have a way of configuring the simulator at 
> > run-time to allow emulation of a set of SWI values.  Either from a  
> > command-line switch (for the arm-...-run command) or a gdb hook (for use 
> > within gdb).
> 
> > Something like:
> > 
> > 	arm-elf-run -emul-swi={redboot|angel|demon|none}
> 
> Hmm, well that could be done.  Personally I would hold off doing it
> until there is actually a situation where it is needed.  At the moment
> support all three SWI interfaces simultaneously is not a problem.  So
> unless someone comes up with a real situation where it causes problems
> I would leave things as they are.  (Just my 2 cents worth).
> 
> Cheers
>         Nick
> 


Actually, we already have.   Look at the mess that is involved with 
testing for XScale -- saying that XScale doesn't support Demon swi's is 
nonsence -- especially when we default to enabling XScale extensions for 
some simulations.  I ran into something like this only the other day -- 
the simulator was turning on XScale (despite the fact that I wasn't using 
any of those extensions), and thus disabling the SWIs I wanted.

Note the comment at the top of ARMul_OSHandleSWI which really gives the 
game away:

  /* Intel do not want DEMON SWI support.  */
  if (state->is_XScale)
	...

R.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-05-20 14:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-20  7:49 Add support for target switches in simulator Nick Clifton
  -- strict thread matches above, loose matches on Subject: below --
2002-05-09  4:11 Add support for RedBoot SWIs to ARM Simulator Richard Earnshaw
2002-05-16  9:16 ` Add support for target switches in simulator Nick Clifton
2002-05-16  9:25   ` Richard Earnshaw
2002-05-17  1:58     ` Nick Clifton
2002-05-17  5:37       ` Richard Earnshaw
2002-05-17  6:46         ` Nick Clifton
2002-05-17 10:17           ` Andrew Cagney
2002-05-17  7:33       ` Frank Ch. Eigler
2002-05-17 10:29       ` Andrew Cagney
2002-05-16  9:36   ` Frank Ch. Eigler
2002-05-16 11:08   ` Michael Snyder
2002-05-17 11:32   ` Andrew Cagney
2002-05-20  6:11     ` Nick Clifton
2002-05-20  7:12       ` Andrew Cagney
2002-05-20  7:19       ` Richard Earnshaw
2002-05-20  7:26         ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox