Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Sergio Durigan Junior <sergiodj@redhat.com>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>,
	gdb-patches@sourceware.org,        brobecker@adacore.com,
	Tom Tromey <tromey@redhat.com>
Subject: [testsuite obv+7.8] gdb.arch/amd64-stap-special-operands.exp !is_lp64_target  [Re: [PATCH] Fix for PR tdep/16397: SystemTap SDT probe support for x86 doesn't work with "triplet operands"]
Date: Mon, 23 Jun 2014 06:30:00 -0000	[thread overview]
Message-ID: <20140623063011.GA19219@host2.jankratochvil.net> (raw)
In-Reply-To: <m3zjh4egic.fsf@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]

On Mon, 23 Jun 2014 00:17:15 +0200, Sergio Durigan Junior wrote:
> On Sunday, June 22 2014, Jan Kratochvil wrote:
> > On Thu, 20 Feb 2014 22:53:21 +0100, Sergio Durigan Junior wrote:
> >> Thanks, I finally pushed it with the necessary fixes.
> >>         https://sourceware.org/ml/gdb-cvs/2014-02/msg00106.html
> > # if { ![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"] } {
> > #     verbose "Skipping amd64-stap-special-operands.exp"
> > #     return 
> > # }   
> >
> > On x86_64 with -m32 or on i686 it will:
> >
> > Running ./gdb.arch/amd64-stap-special-operands.exp ...
> > gdb compile failed, amd64-stap-triplet.c: Assembler messages:
> > amd64-stap-triplet.c:35: Error: bad register name `%rbp'
> > amd64-stap-triplet.c:38: Error: bad register name `%rsp'
> > amd64-stap-triplet.c:40: Error: bad register name `%rbp)'
> > amd64-stap-triplet.c:41: Error: bad register name `%rsi'
> > amd64-stap-triplet.c:42: Error: bad register name `%rbp)'
> > /tmp/ccjOdmpl.s:63: Error: bad register name `%rbp'
[...]
> BTW, gdb.arch/amd64-stap-optional-prefix.exp needs the same check for
> ![is_lp64_target], would you mind adding too?

OK, done, also one other testfile (gdb.dwarf2/dw2-error.exp).

Checked in for master:
	b972bd9c133c8acd3f5ce8d05a4fdfc85aee2c15
and for gdb-7.8-branch:
	45e9b677bd79b001548b15921adf6bd1962562c0


Jan

[-- Attachment #2: 1 --]
[-- Type: text/plain, Size: 3247 bytes --]

commit b972bd9c133c8acd3f5ce8d05a4fdfc85aee2c15
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Jun 23 08:24:36 2014 +0200

    testsuite: Use istarget and is_lp64_target for 3 testcases.
    
    On x86_64 with -m32 or on i686 it will:
    
    Running ./gdb.arch/amd64-stap-special-operands.exp ...
    gdb compile failed, amd64-stap-triplet.c: Assembler messages:
    amd64-stap-triplet.c:35: Error: bad register name `%rbp'
    amd64-stap-triplet.c:38: Error: bad register name `%rsp'
    amd64-stap-triplet.c:40: Error: bad register name `%rbp)'
    amd64-stap-triplet.c:41: Error: bad register name `%rsi'
    amd64-stap-triplet.c:42: Error: bad register name `%rbp)'
    /tmp/ccjOdmpl.s:63: Error: bad register name `%rbp'
    
    2014-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	* gdb.arch/amd64-stap-special-operands.exp: Use is_lp64_target.
    	* gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
    	* gdb.dwarf2/dw2-error.exp: Use istarget and is_lp64_target.
    
    Message-ID: <20140622211401.GA3716@host2.jankratochvil.net>

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 1e7ef7f..93cd6f6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2014-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* gdb.arch/amd64-stap-special-operands.exp: Use is_lp64_target.
+	* gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
+	* gdb.dwarf2/dw2-error.exp: Use istarget and is_lp64_target.
+
 2014-06-20  Gary Benson  <gbenson@redhat.com>
 
 	* gdb.arch/i386-avx.exp: Fix include file location.
diff --git a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
index b7f1505..10d3e70 100644
--- a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
+++ b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
@@ -17,7 +17,7 @@
 
 standard_testfile ".S"
 
-if { ![istarget "x86_64-*-*"] } {
+if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } {
     verbose "Skipping $testfile.exp"
     return
 }
diff --git a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
index a6ce7f5..988b5d6 100644
--- a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
+++ b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
@@ -13,7 +13,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"] } {
+if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } {
     verbose "Skipping amd64-stap-special-operands.exp"
     return
 }
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-error.exp
index 65eac6d..b6cd205 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-error.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-error.exp
@@ -22,6 +22,11 @@ if {![dwarf2_support]} {
 
 standard_testfile .S
 
+if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } {
+    verbose "Skipping $testfile.exp"
+    return
+}
+
 # We can't use prepare_for_testing here because we need to check the
 # 'file' command's output.
 if {[build_executable $testfile.exp $testfile $srcfile {nodebug}]} {

      reply	other threads:[~2014-06-23  6:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-12  4:06 [PATCH] Fix for PR tdep/16397: SystemTap SDT probe support for x86 doesn't work with "triplet operands" Sergio Durigan Junior
2014-01-17 21:31 ` Sergio Durigan Junior
2014-01-30 15:16   ` Sergio Durigan Junior
2014-01-30 15:36     ` Mark Kettenis
2014-02-02 16:29       ` Sergio Durigan Junior
2014-02-02 17:07         ` Mark Kettenis
2014-02-20 21:53       ` Sergio Durigan Junior
2014-06-22 21:14         ` [testsuite patch+7.8] gdb.arch/amd64-stap-special-operands.exp !is_lp64_target [Re: [PATCH] Fix for PR tdep/16397: SystemTap SDT probe support for x86 doesn't work with "triplet operands"] Jan Kratochvil
2014-06-22 22:17           ` Sergio Durigan Junior
2014-06-23  6:30             ` Jan Kratochvil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140623063011.GA19219@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=sergiodj@redhat.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox