public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-vla: Fix gdb.ada/null_array.exp.
@ 2010-11-07 20:09 jkratoch
  0 siblings, 0 replies; only message in thread
From: jkratoch @ 2010-11-07 20:09 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-vla has been updated
       via  3b250f43d9164cbb9d143c09124fc042c4441015 (commit)
      from  35c74460a9b0e48b20c8b44f775bef84ab4514b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 3b250f43d9164cbb9d143c09124fc042c4441015
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Nov 7 21:09:21 2010 +0100

    Fix gdb.ada/null_array.exp.

-----------------------------------------------------------------------

Summary of changes:
 gdb/dwarf2read.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3f076fc..e372afb 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -8220,7 +8220,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu)
 	high = dwarf2_get_attr_constant_value (attr, 0);
       else
 	{
-	  TYPE_HIGH_BOUND_UNDEFINED (range_type) = 1;
+	  /* Ada expects an empty array on no boundary attributes.  */
+	  if (cu->language != language_ada)
+	    TYPE_HIGH_BOUND_UNDEFINED (range_type) = 1;
 	  high = low - 1;
 	}
       if (!TYPE_UNSIGNED (base_type) && (high & negative_mask))


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-07 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-07 20:09 [SCM] archer-jankratochvil-vla: Fix gdb.ada/null_array.exp jkratoch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).