From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13648 invoked by alias); 27 Mar 2003 09:51:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13616 invoked from network); 27 Mar 2003 09:51:10 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 27 Mar 2003 09:51:10 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h2R9p7Q32464 for ; Thu, 27 Mar 2003 04:51:07 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h2R9p5Q02622 for ; Thu, 27 Mar 2003 04:51:06 -0500 Received: from cygbert.vinschen.de (vpn50-14.rdu.redhat.com [172.16.50.14]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h2R9p3506451 for ; Thu, 27 Mar 2003 01:51:03 -0800 Received: (from corinna@localhost) by cygbert.vinschen.de (8.11.6/8.9.3/Linux sendmail 8.9.3) id h2R9ox209471 for gdb-patches@sources.redhat.com; Thu, 27 Mar 2003 10:50:59 +0100 Date: Thu, 27 Mar 2003 09:51:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: [RFA] testsuite/gdb.c++/casts.exp: Fix to run also on embedded targets Message-ID: <20030327095059.GF23762@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-03/txt/msg00539.txt.bz2 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 * 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