From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id fOgUEZIzmV/AXwAAWB0awg (envelope-from ) for ; Wed, 28 Oct 2020 05:02:10 -0400 Received: by simark.ca (Postfix, from userid 112) id 39BE21EFC1; Wed, 28 Oct 2020 05:02:10 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6AEFB1E58D for ; Wed, 28 Oct 2020 05:02:09 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CB3BB3858005; Wed, 28 Oct 2020 09:02:08 +0000 (GMT) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 545BD3858005 for ; Wed, 28 Oct 2020 09:02:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 545BD3858005 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tdevries@suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5EBC1AE0C for ; Wed, 28 Oct 2020 09:02:05 +0000 (UTC) Date: Wed, 28 Oct 2020 10:02:03 +0100 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix gdb.dwarf2/dw2-stack-boundary.exp with -readnow Message-ID: <20201028090202.GA23004@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Hi, When running test-case gdb.dwarf2/dw2-stack-boundary.exp with target board readnow, we run into: ... FAIL: gdb.dwarf2/dw2-stack-boundary.exp: check partial symtab errors ... The cause for the FAIL is that these complaints are not there: ... During symbol reading: location description stack underflow^M During symbol reading: location description stack overflow^M ... Fix this by KFAILing the complaints for -readnow. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix gdb.dwarf2/dw2-stack-boundary.exp with -readnow gdb/testsuite/ChangeLog: 2020-10-28 Tom de Vries * gdb.dwarf2/dw2-stack-boundary.exp: KFAILing the complaints for -readnow. --- gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp | 26 ++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp index 6971cbc4bd..d946679e54 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp @@ -38,7 +38,31 @@ if [is_remote host] { } } gdb_test_no_output "set complaints 100" -gdb_test "file $binfile" {Reading symbols from .*\.\.\.\r\nDuring symbol reading: location description stack underflow\r\nDuring symbol reading: location description stack overflow} "check partial symtab errors" +set w1 0 +set w2 0 +gdb_test_multiple "file $binfile" "file command" { + -re "\r\nReading symbols from \[^\r\n\]*\\.\\.\\." { + exp_continue + } + -re "\r\nDuring symbol reading: location description stack underflow" { + set w1 1 + exp_continue + } + -re "\r\nDuring symbol reading: location description stack overflow" { + set w2 1 + exp_continue + } + -re -wrap "" { + pass $gdb_test_name + } +} + +set readnow_p [readnow] + +if { $readnow_p } { + setup_kfail "gdb/26796" *-*-* +} +gdb_assert {$w1 && $w2} gdb_test "p underflow" {Asked for position 0 of stack, stack only has 0 elements on it\.} gdb_test "p overflow" " = 2"