|
|
7b26da |
From gdb-patches-return-123876-listarch-gdb-patches=sources dot redhat dot com at sourceware dot org Mon Jun 29 16:37:14 2015
|
|
|
7b26da |
Return-Path: <gdb-patches-return-123876-listarch-gdb-patches=sources dot redhat dot com at sourceware dot org>
|
|
|
7b26da |
Delivered-To: listarch-gdb-patches at sources dot redhat dot com
|
|
|
7b26da |
Received: (qmail 98411 invoked by alias); 29 Jun 2015 16:37:14 -0000
|
|
|
7b26da |
Mailing-List: contact gdb-patches-help at sourceware dot org; run by ezmlm
|
|
|
7b26da |
Precedence: bulk
|
|
|
7b26da |
List-Id: <gdb-patches.sourceware.org>
|
|
|
7b26da |
List-Subscribe: <mailto:gdb-patches-subscribe at sourceware dot org>
|
|
|
7b26da |
List-Archive: <http://sourceware.org/ml/gdb-patches/>
|
|
|
7b26da |
List-Post: <mailto:gdb-patches at sourceware dot org>
|
|
|
7b26da |
List-Help: <mailto:gdb-patches-help at sourceware dot org>, <http://sourceware dot org/ml/#faqs>
|
|
|
7b26da |
Sender: gdb-patches-owner at sourceware dot org
|
|
|
7b26da |
Delivered-To: mailing list gdb-patches at sourceware dot org
|
|
|
7b26da |
Received: (qmail 98402 invoked by uid 89); 29 Jun 2015 16:37:13 -0000
|
|
|
7b26da |
Authentication-Results: sourceware.org; auth=none
|
|
|
7b26da |
X-Virus-Found: No
|
|
|
7b26da |
X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2
|
|
|
7b26da |
X-HELO: mx1.redhat.com
|
|
|
7b26da |
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; Mon, 29 Jun 2015 16:37:13 +0000
|
|
|
7b26da |
Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id DF7D48EA29 for <gdb-patches@sourceware.org>; Mon, 29 Jun 2015 16:37:11 +0000 (UTC)
|
|
|
7b26da |
Received: from host1.jankratochvil.net (ovpn-116-41.ams2.redhat.com [10.36.116.41]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5TGb8I0022607 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <gdb-patches@sourceware.org>; Mon, 29 Jun 2015 12:37:11 -0400
|
|
|
7b26da |
Date: Mon, 29 Jun 2015 18:37:08 +0200
|
|
|
7b26da |
From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
|
|
|
7b26da |
To: gdb-patches at sourceware dot org
|
|
|
7b26da |
Subject: [testsuite patch] Fix testsuite regression by: Do not skip prologue for asm (.S) files
|
|
|
7b26da |
Message-ID: <20150629163708.GA28795@host1.jankratochvil.net>
|
|
|
7b26da |
MIME-Version: 1.0
|
|
|
7b26da |
Content-Type: multipart/mixed; boundary="wac7ysb48OaltWcw"
|
|
|
7b26da |
Content-Disposition: inline
|
|
|
7b26da |
User-Agent: Mutt/1.5.23 (2014-03-12)
|
|
|
7b26da |
X-IsSubscribed: yes
|
|
|
7b26da |
|
|
|
7b26da |
|
|
|
7b26da |
--wac7ysb48OaltWcw
|
|
|
7b26da |
Content-Type: text/plain; charset=us-ascii
|
|
|
7b26da |
Content-Disposition: inline
|
|
|
7b26da |
|
|
|
7b26da |
Hi,
|
|
|
7b26da |
|
|
|
7b26da |
I have somehow missed gdb.asm/asm-source.exp PASS->FAIL even on x86_64.
|
|
|
7b26da |
|
|
|
7b26da |
It has no longer valid assumption that "break" breaks after the prologue even
|
|
|
7b26da |
in assembler. So I have changed this assumption of the testfile.
|
|
|
7b26da |
|
|
|
7b26da |
Tested it FAIL->PASSes on x86_64, ppc64 and s390x.
|
|
|
7b26da |
|
|
|
7b26da |
OK for check-in?
|
|
|
7b26da |
|
|
|
7b26da |
|
|
|
7b26da |
Jan
|
|
|
7b26da |
|
|
|
7b26da |
--wac7ysb48OaltWcw
|
|
|
7b26da |
Content-Type: text/plain; charset=us-ascii
|
|
|
7b26da |
Content-Disposition: inline; filename=2
|
|
|
7b26da |
|
|
|
7b26da |
gdb/testsuite/
|
|
|
7b26da |
2015-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
7b26da |
|
|
|
7b26da |
* gdb.asm/asm-source.exp (f at main): Stop at gdbasm_enter.
|
|
|
7b26da |
(n at main): New.
|
|
|
7b26da |
* gdb.asm/asmsrc1.s: Add comment "mark: main enter".
|
|
|
7b26da |
|
|
|
7b26da |
Index: gdb-7.6.1/gdb/testsuite/gdb.asm/asm-source.exp
|
|
|
7b26da |
===================================================================
|
|
|
7b26da |
--- gdb-7.6.1.orig/gdb/testsuite/gdb.asm/asm-source.exp
|
|
|
7b26da |
+++ gdb-7.6.1/gdb/testsuite/gdb.asm/asm-source.exp
|
|
|
7b26da |
@@ -272,6 +272,7 @@ if { [istarget "m6811-*-*"] || [istarget
|
|
|
7b26da |
}
|
|
|
7b26da |
|
|
|
7b26da |
# Collect some line numbers.
|
|
|
7b26da |
+set line_enter [expr [gdb_get_line_number "main enter" "asmsrc1.s"] + 1]
|
|
|
7b26da |
set line_main [expr [gdb_get_line_number "main start" "asmsrc1.s"] + 1]
|
|
|
7b26da |
set line_call_foo2 [expr [gdb_get_line_number "call foo2" "asmsrc1.s"] + 1]
|
|
|
7b26da |
set line_search_comment [expr [gdb_get_line_number "search" "asmsrc1.s"] + 1]
|
|
|
7b26da |
@@ -295,7 +296,10 @@ if ![runto_main] then {
|
|
|
7b26da |
}
|
|
|
7b26da |
|
|
|
7b26da |
# Execute the `f' command and see if the result includes source info.
|
|
|
7b26da |
-gdb_test "f" "asmsrc1\[.\]s:$line_main.*several_nops" "f at main"
|
|
|
7b26da |
+gdb_test "f" "asmsrc1\[.\]s:$line_enter.*gdbasm_enter" "f at main"
|
|
|
7b26da |
+
|
|
|
7b26da |
+# Execute the `n' command.
|
|
|
7b26da |
+gdb_test "n" "$line_main\[ \]*.*several_nops" "n at main"
|
|
|
7b26da |
|
|
|
7b26da |
# See if we properly `next' over a macro with several insns.
|
|
|
7b26da |
gdb_test "n" "$line_call_foo2\[ \]*.*foo2" "next over macro"
|
|
|
7b26da |
Index: gdb-7.6.1/gdb/testsuite/gdb.asm/asmsrc1.s
|
|
|
7b26da |
===================================================================
|
|
|
7b26da |
--- gdb-7.6.1.orig/gdb/testsuite/gdb.asm/asmsrc1.s
|
|
|
7b26da |
+++ gdb-7.6.1/gdb/testsuite/gdb.asm/asmsrc1.s
|
|
|
7b26da |
@@ -34,6 +34,7 @@
|
|
|
7b26da |
|
|
|
7b26da |
.global main
|
|
|
7b26da |
gdbasm_declare main
|
|
|
7b26da |
+ comment "mark: main enter"
|
|
|
7b26da |
gdbasm_enter
|
|
|
7b26da |
|
|
|
7b26da |
comment "Call a macro that consists of several lines of assembler code."
|