Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] testsuite/config/sim.exp:gdb_load fix return values
@ 2004-11-27 13:09 Richard Earnshaw
  2004-11-28 17:36 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Earnshaw @ 2004-11-27 13:09 UTC (permalink / raw)
  To: gdb-patches; +Cc: Richard.Earnshaw, Michael Chastain

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]


This patch fixes the return values of the gdb_load implementation in 
sim.exp.  With this patch the testsuite is begining to look somewhat more 
sane again for an arm-elf cross.

OK?

	* config/sim.exp (gdb_load): Return 0 on success, -1 on failure.

R.



[-- Attachment #2: sim.patch --]
[-- Type: text/x-patch , Size: 769 bytes --]

Index: sim.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/config/sim.exp,v
retrieving revision 1.2
diff -p -p -r1.2 sim.exp
*** sim.exp	8 Feb 2004 03:56:14 -0000	1.2
--- sim.exp	27 Nov 2004 12:59:44 -0000
*************** proc gdb_load { arg } {
*** 71,77 ****
  	    }
  	    set timeout 30
  	    verbose "Timeout is now $timeout seconds" 2
! 	    return 1
  	}
  	-re "$gdb_prompt $"     {
  	    if $verbose>1 then {
--- 71,77 ----
  	    }
  	    set timeout 30
  	    verbose "Timeout is now $timeout seconds" 2
! 	    return 0
  	}
  	-re "$gdb_prompt $"     {
  	    if $verbose>1 then {
*************** proc gdb_load { arg } {
*** 84,87 ****
--- 84,88 ----
  	    }
  	}
      }
+     return -1
  }

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

* Re: [PATCH] testsuite/config/sim.exp:gdb_load fix return values
  2004-11-27 13:09 [PATCH] testsuite/config/sim.exp:gdb_load fix return values Richard Earnshaw
@ 2004-11-28 17:36 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2004-11-28 17:36 UTC (permalink / raw)
  To: Richard Earnshaw; +Cc: gdb-patches, Michael Chastain

Richard Earnshaw wrote:
> This patch fixes the return values of the gdb_load implementation in 
> sim.exp.  With this patch the testsuite is begining to look somewhat more 
> sane again for an arm-elf cross.
> 
> OK?
> 
> 	* config/sim.exp (gdb_load): Return 0 on success, -1 on failure.

M'kay (for michael).

Andrew

> ------------------------------------------------------------------------
> 
> Index: sim.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/config/sim.exp,v
> retrieving revision 1.2
> diff -p -p -r1.2 sim.exp
> *** sim.exp	8 Feb 2004 03:56:14 -0000	1.2
> --- sim.exp	27 Nov 2004 12:59:44 -0000
> *************** proc gdb_load { arg } {
> *** 71,77 ****
>   	    }
>   	    set timeout 30
>   	    verbose "Timeout is now $timeout seconds" 2
> ! 	    return 1
>   	}
>   	-re "$gdb_prompt $"     {
>   	    if $verbose>1 then {
> --- 71,77 ----
>   	    }
>   	    set timeout 30
>   	    verbose "Timeout is now $timeout seconds" 2
> ! 	    return 0
>   	}
>   	-re "$gdb_prompt $"     {
>   	    if $verbose>1 then {
> *************** proc gdb_load { arg } {
> *** 84,87 ****
> --- 84,88 ----
>   	    }
>   	}
>       }
> +     return -1
>   }


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

end of thread, other threads:[~2004-11-28 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-27 13:09 [PATCH] testsuite/config/sim.exp:gdb_load fix return values Richard Earnshaw
2004-11-28 17:36 ` Andrew Cagney

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