From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25987 invoked by alias); 6 Nov 2012 17:09:15 -0000 Received: (qmail 25976 invoked by uid 22791); 6 Nov 2012 17:09:12 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_VH X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Nov 2012 17:09:08 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1TVmeB-0004CT-5s from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Tue, 06 Nov 2012 09:09:07 -0800 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by svr-orw-fem-01.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 6 Nov 2012 09:09:07 -0800 Received: from [0.0.0.0] ([172.16.63.104]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 6 Nov 2012 09:09:06 -0800 Message-ID: <50994431.1040405@codesourcery.com> Date: Tue, 06 Nov 2012 17:09:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [PATCH,tests] Run to main before doing any tests in structs3.exp Content-Type: multipart/mixed; boundary="------------010009000306080707030901" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00120.txt.bz2 This is a multi-part message in MIME format. --------------010009000306080707030901 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 244 Hi, On remote targets, we don't always start at the entry point. Thus, it is safer to get to main and do the tests from that point onwards. This patch does exactly that, and fixes failures when testing this under some remote targets. OK? --------------010009000306080707030901 Content-Type: text/x-patch; name="0004-structs-fails.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0004-structs-fails.diff" Content-length: 627 2012-11-06 Luis Machado * gdb.base/structs3.exp: Run to main before doing any tests. Index: gdb-trunk/gdb/testsuite/gdb.base/structs3.exp =================================================================== --- gdb-trunk.orig/gdb/testsuite/gdb.base/structs3.exp 2012-11-02 17:29:00.801049370 -0200 +++ gdb-trunk/gdb/testsuite/gdb.base/structs3.exp 2012-11-02 17:29:57.401050043 -0200 @@ -23,6 +23,11 @@ if { [prepare_for_testing structs3.exp " return -1 } +if ![runto_main] { + untested "could not run to main" + return -1 +} + set vhn "\\$\[0-9\]+" # Check the real contents. --------------010009000306080707030901--