Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <Richard.Earnshaw@buzzard.freeserve.co.uk>
To: gdb-patches@sources.redhat.com
Cc: Richard.Earnshaw@buzzard.freeserve.co.uk,
	Michael Chastain <mec.gnu@mindspring.com>
Subject: [PATCH] testsuite/config/sim.exp:gdb_load fix return values
Date: Sat, 27 Nov 2004 13:09:00 -0000	[thread overview]
Message-ID: <200411271303.iARD32Ie003284@merlin.buzzard.freeserve.co.uk> (raw)

[-- 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
  }

             reply	other threads:[~2004-11-27 13:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-27 13:09 Richard Earnshaw [this message]
2004-11-28 17:36 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200411271303.iARD32Ie003284@merlin.buzzard.freeserve.co.uk \
    --to=richard.earnshaw@buzzard.freeserve.co.uk \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mec.gnu@mindspring.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox