This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Import support for rawsid protocol to dejagnu


Hi Guys,

  I am importing a patch to dejagnu/config/sim.exp file from the
  Savannah repository.  This patch adds support for the rawsid protocol
  which is used by the xstormy16 target amoungst others.

Cheers
  Nick

dejagnu/ChangeLog
2004-10-05  Nick Clifton  <nickc@redhat.com>

	* Import this patch from Savannah repository:

	2003-02-19  DJ Delorie  <dj@redhat.com>
        * config/sim.exp: Support both sid and rawsid protocols.

Index: dejagnu/config/sim.exp
===================================================================
RCS file: /cvs/src/src/dejagnu/config/sim.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 sim.exp
*** dejagnu/config/sim.exp	21 Apr 2002 08:46:48 -0000	1.2
--- dejagnu/config/sim.exp	5 Oct 2004 09:41:56 -0000
*************** proc sim_load { dest prog args } {
*** 82,94 ****
  
      set output "";
  
      # Run the program with a limited amount of real time. While
      # this isn't as nice as limiting the amount of CPU time, it
      # will have to do.
      if { $inpfile != "" } {
! 	set res [remote_spawn target "${prog} < $inpfile" "readonly"];
      } else {
! 	set res [remote_spawn target "${prog}"];
      }
  
      if { $res <= 0 } {
--- 82,102 ----
  
      set output "";
  
+     if { [board_info target sim,protocol] == "sid" } {
+ 	set cmd "-e \"set cpu-loader file [list $prog]\""
+     } elseif { [board_info target sim,protocol] == "rawsid" } {
+ 	set cmd "--load=$prog"
+     } else {
+ 	set cmd $prog
+     }
+ 
      # Run the program with a limited amount of real time. While
      # this isn't as nice as limiting the amount of CPU time, it
      # will have to do.
      if { $inpfile != "" } {
! 	set res [remote_spawn target "${cmd} < $inpfile" "readonly"];
      } else {
! 	set res [remote_spawn target "${cmd}"];
      }
  
      if { $res <= 0 } {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]