From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22432 invoked by alias); 29 Oct 2010 19:20:50 -0000 Received: (qmail 22411 invoked by uid 22791); 29 Oct 2010 19:20:49 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Oct 2010 19:20:42 +0000 Received: (qmail 28534 invoked from network); 29 Oct 2010 19:20:41 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Oct 2010 19:20:41 -0000 From: Nathan Froyd To: gdb-patches@sourceware.org Subject: [PATCH] skip break-entry.exp when using a stub Date: Fri, 29 Oct 2010 19:20:00 -0000 Message-Id: <1288380040-22077-1-git-send-email-froydnj@codesourcery.com> 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: 2010-10/txt/msg00388.txt.bz2 This patch skips gdb.base/break-entry.exp when using a stub. prepare_for_testing already stopped the program at its entry, so the test will not work correctly. Tested with cross to powerpc-linux-gnu using gdbserver. OK to commit? -Nathan * gdb.base/break-entry.exp: Skip if using a stub. --- gdb/testsuite/gdb.base/break-entry.exp | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/gdb/testsuite/gdb.base/break-entry.exp b/gdb/testsuite/gdb.base/break-entry.exp index d4b86a3..4e4515b 100644 --- a/gdb/testsuite/gdb.base/break-entry.exp +++ b/gdb/testsuite/gdb.base/break-entry.exp @@ -21,6 +21,15 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} start.c {additional_flags= return -1 } +# If we're using a stub, we'll already be stopped at the entry point +# when we connect. Don't bother trying to work around this in the +# testing below. + +if [target_info exists use_gdb_stub] { + untested ${testfile}.exp + return +} + set test "info files" set entry "" gdb_test_multiple $test $test { -- 1.6.3.2