From patchwork Wed Jul 20 14:29:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 13894 Received: (qmail 80371 invoked by alias); 20 Jul 2016 14:29:22 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 80348 invoked by uid 89); 20 Jul 2016 14:29:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=TRY X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 20 Jul 2016 14:29:14 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6DA713B75E; Wed, 20 Jul 2016 14:29:12 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-34.ams2.redhat.com [10.36.116.34]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6KET9Oc024226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 20 Jul 2016 10:29:11 -0400 Date: Wed, 20 Jul 2016 16:29:08 +0200 From: Jan Kratochvil To: Yao Qi Cc: "gdb-patches@sourceware.org" Subject: [commit] [testsuite patch] Fix gdb.gdb/selftest.exp for C++-O2-g-built GDB Message-ID: <20160720142908.GC16994@host1.jankratochvil.net> References: <20160716131402.GA2961@host1.jankratochvil.net> <20160718081834.GA26110@host1.jankratochvil.net> <20160718114002.GA26094@host1.jankratochvil.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-IsSubscribed: yes On Tue, 19 Jul 2016 11:47:07 +0200, Yao Qi wrote: > I've pushed my patch in. Your patch changing test_with_self is no longer > needed, but changes in do_steps_and_nexts are still useful to fix the fails > you've seen, so changes in do_steps_and_nexts are OK to commit. Checked in: 027d97f8b0193a8113ee60bafc686d45d0af59ee Thanks, Jan tested on Fedora 24 x86_64 after: ./configure; make That is: CFLAGS='-g -O2' CXXFLAGS='-g -O2' FAIL: gdb.gdb/selftest.exp: unknown source line FAIL: gdb.gdb/selftest.exp: step into xmalloc call gdb/testsuite/ChangeLog 2016-07-20 Jan Kratochvil * gdb.gdb/selftest.exp (do_steps_and_nexts): Add "next over TRY" and "step into captured_main (args)". --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.gdb/selftest.exp | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3a1bdfd..e7d935e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2016-07-20 Jan Kratochvil + * gdb.gdb/selftest.exp (do_steps_and_nexts): Add "next over TRY" and + "step into captured_main (args)". + +2016-07-20 Jan Kratochvil + * gdb.btrace/tailcall-only.exp: Use is_lp64_target check. 2016-07-20 Jan Kratochvil diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index 809045a..2fdd9e3 100644 --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp @@ -111,6 +111,14 @@ proc do_steps_and_nexts {} { set description "next over lim_at_start initialization" set command "next" } + -re ".*TRY.*$gdb_prompt $" { + set description "next over TRY" + set command "next" + } + -re ".*captured_main \\(args\\);.*$gdb_prompt $" { + set description "step into captured_main (args)" + set command "step" + } -re ".*count . 0x3.*$gdb_prompt $" { set description "next over conditional stack alignment code 1" set command "next"