Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] testsuite/gdb.c++/casts.exp: Fix to run also on embedded targets
Date: Thu, 27 Mar 2003 09:51:00 -0000	[thread overview]
Message-ID: <20030327095059.GF23762@cygbert.vinschen.de> (raw)

Hi,

the following patch removes the usage of the "run" command from the
gdb.c++/casts.exp test.  This way it also runs on targets which don't
support "run" as a valid command (e.g. on embedded boards).

Ok to commit?

2003-03-27  Corinna Vinschen  <vinschen@redhat.com>

	* gdb.c++/casts.exp: Fix startup to run also on embedded targets.

Index: gdb.c++/casts.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/casts.exp,v
retrieving revision 1.2
diff -u -p -r1.2 casts.exp
--- gdb.c++/casts.exp	4 Jan 2003 22:30:21 -0000	1.2
+++ gdb.c++/casts.exp	27 Mar 2003 09:38:52 -0000
@@ -55,11 +55,16 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+if ![runto_main] then {
+    perror "couldn't run to breakpoint"
+    continue
+}
+
 gdb_test "break [gdb_get_line_number "casts.exp: 1"]" \
     "Breakpoint.*at.* file .*" \
     ""
 
-gdb_test "run" "Breakpoint .* at .*casts.cc.*" ""
+gdb_test "continue" "Breakpoint .* at .*casts.cc.*" ""
 
 # Casting a pointer to a base class to a pointer to a derived class
 # should yield the entire derived class.  Until August 2002, GDB got


-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com


             reply	other threads:[~2003-03-27  9:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-27  9:51 Corinna Vinschen [this message]
2003-03-27 13:40 ` Daniel Jacobowitz
2003-03-27 14:10   ` Corinna Vinschen
2003-03-27 18:09 Michael Elizabeth Chastain
2003-03-27 20:18 ` Corinna Vinschen

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=20030327095059.GF23762@cygbert.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=gdb-patches@sources.redhat.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