Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Salter <msalter@redhat.com>
To: gdb-patches@sourceware.cygnus.com
Subject: testsuite fix for remote targets
Date: Thu, 15 Mar 2001 09:57:00 -0000	[thread overview]
Message-ID: <200103151758.f2FHwmO18422@deneb.localdomain> (raw)

This change:

        * config/monitor.exp (gdb_target_cmd): Abstracts some of the
        code from gdb_target_monitor, so it can be used independantly
        for gdbserver.

apparently broke some remote targets. I'm not sure how this worked at
all, but following is a simple patch that fixes the problem I'm seeing.

--Mark



gdb/testsuite/ChangeLog:

2001-03-15  Mark Salter  <msalter@redhat.com>

	* config/monitor.exp (gdb_target_cmd): Add explicit error return.
	(gdb_target_monitor): Add check of gdb_target_cmd return value.



Index: gdb/testsuite/config/monitor.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/config/monitor.exp,v
retrieving revision 1.3
diff -u -p -5 -r1.3 monitor.exp
--- gdb/testsuite/config/monitor.exp	2001/03/06 08:21:48	1.3
+++ gdb/testsuite/config/monitor.exp	2001/03/15 17:41:35
@@ -65,10 +65,11 @@ proc gdb_target_cmd { targetname serialp
 		send_gdb "\x03";
 		break
 	    }
 	}
     }
+    return 1
 }
 
 
 
 #
@@ -107,11 +108,11 @@ proc gdb_target_monitor { exec_file } {
     }
 
     for {set j 1} {$j <= 2} {incr j} {
 	if [gdb_file_cmd $exec_file] { return -1; }
 
-	gdb_target_cmd $targetname $serialport;
+	if ![gdb_target_cmd $targetname $serialport] { return 0; }
 
 	gdb_target_exec;
 
 	if { $j == 1 && ![reboot_target] } {
 	    break;


             reply	other threads:[~2001-03-15  9:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-15  9:57 Mark Salter [this message]
2001-03-15 10:38 ` Fernando Nasser
2001-03-15 11:23 ` Michael Snyder

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=200103151758.f2FHwmO18422@deneb.localdomain \
    --to=msalter@redhat.com \
    --cc=gdb-patches@sourceware.cygnus.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