Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Ken Werner <ken@linux.vnet.ibm.com>,
	Tom Tromey <tromey@redhat.com>,
	       gdb-patches@sourceware.org
Subject: Re: Regression on gdb.ada/null_array.exp  [Re: [patch] DW_AT_byte_size for array type entries]
Date: Thu, 04 Nov 2010 18:54:00 -0000	[thread overview]
Message-ID: <20101104185341.GA10375@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <20101104182346.GH2445@adacore.com>

On Thu, 04 Nov 2010 19:23:46 +0100, Joel Brobecker wrote:
> > OK, so could you XFAIL it? <=gcc-4.4 or the missing ___XA type are both fine
> > IMO.  I will do it otherwise.
> 
> I would do it, normally, but I think it's easier if you do it, because
> I would not be able to test the XFAIL case.

Checked-in.

BTW I did not find any difference in the ___XA DIEs so I used the <=4.4 check.



Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2010-11/msg00021.html

--- src/gdb/testsuite/ChangeLog	2010/11/03 14:21:58	1.2496
+++ src/gdb/testsuite/ChangeLog	2010/11/04 18:52:11	1.2497
@@ -1,3 +1,9 @@
+2010-11-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+	    Joel Brobecker  <brobecker@adacore.com>
+
+	* gdb.ada/null_array.exp (print my_table): Call get_compiler_info and
+	check test_compiler_info.
+
 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
 
 	* gdb.base/gnu_vector.exp: Adjust expect messages.
--- src/gdb/testsuite/gdb.ada/null_array.exp	2010/01/01 07:31:51	1.5
+++ src/gdb/testsuite/gdb.ada/null_array.exp	2010/11/04 18:52:11	1.6
@@ -37,6 +37,15 @@
 set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
+if [get_compiler_info ${binfile}] {
+    return -1;
+}
+
+if {[test_compiler_info {gcc-[0-3]-*}]
+    || [test_compiler_info {gcc-4-[0-4]-*}]} {
+    # Ada array bounds are missing in older GCCs.
+    setup_xfail *-*-* 
+}
 gdb_test "print my_table" \
          "= \\(\\)" \
          "print my_table"


  reply	other threads:[~2010-11-04 18:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 11:24 [patch] DW_AT_byte_size for array type entries Ken Werner
2010-10-19 18:16 ` Ken Werner
2010-11-02  8:23   ` Ken Werner
2010-11-02 22:45   ` Tom Tromey
2010-11-03 14:23     ` Ken Werner
2010-11-03 19:09       ` Regression on gdb.ada/null_array.exp [Re: [patch] DW_AT_byte_size for array type entries] Jan Kratochvil
2010-11-03 21:16         ` Joel Brobecker
2010-11-03 23:22           ` [commit/Ada] fix warning when printing empty array Joel Brobecker
2010-11-03 23:24         ` Regression on gdb.ada/null_array.exp [Re: [patch] DW_AT_byte_size for array type entries] Joel Brobecker
2010-11-04  0:31           ` Jan Kratochvil
2010-11-04  1:57             ` Joel Brobecker
2010-11-04  3:26               ` Jan Kratochvil
2010-11-04 18:01                 ` Joel Brobecker
2010-11-04 18:10                   ` Jan Kratochvil
2010-11-04 18:23                     ` Joel Brobecker
2010-11-04 18:54                       ` Jan Kratochvil [this message]
2010-11-04 22:11                         ` Joel Brobecker
2010-12-13 20:03       ` [patch] DW_AT_byte_size for array type entries Ken Werner
2010-12-14  5:42         ` Joel Brobecker
2010-12-14 10:27           ` Ken Werner

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=20101104185341.GA10375@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=ken@linux.vnet.ibm.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