From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10633 invoked by alias); 28 Mar 2011 20:56:50 -0000 Received: (qmail 10624 invoked by uid 22791); 28 Mar 2011 20:56:49 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Mar 2011 20:56:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 2DDC42BB091; Mon, 28 Mar 2011 16:56:45 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id AU9C56TEI9f9; Mon, 28 Mar 2011 16:56:45 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 002BF2BAFEE; Mon, 28 Mar 2011 16:56:44 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 7E58A145869; Mon, 28 Mar 2011 13:56:40 -0700 (PDT) Date: Mon, 28 Mar 2011 21:27:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: [patch] ada testsuite: False FAILs with gcc debug info Message-ID: <20110328205640.GE3670@adacore.com> References: <20110327081139.GA30398@host1.jankratochvil.net> <20110328165022.GB3670@adacore.com> <20110328200825.GA22355@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110328200825.GA22355@host1.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg01150.txt.bz2 > I do not understand this much. I have the single system only > compiler, which also provides debug info for all its parts. While I > can have some special GCC builds still with the default system > compiler the GDB testsuite should work. That's the thing, as far as I know, you need to change something in order to be able to build the runtime with debugging information. It's been a long time since I worked on that part of the compiler, but, by default, we do not produce a runtime with debugging info. For those of us that need to debug the runtime, we usually using "gnatmake -f -a". > (gdb) ptype ada.strings.maps.character_set > type = array (character) of boolean > (gdb) ptype "a" > type = array (1 .. 1) of character > > and ada_type_match for TYPE_CODE_ARRAY returns 1 without checking > whether the array's target type matches. And both these types are > arrays. Why Character_Set should not match String with this > ada_type_match implementation? > > So far it seems to me ada_type_match has a bug, does not it? Yeah, that looks like a hole in the implementation indeed. I think I wasn't seeing the problem with `gnatmake -f -a' because ada.strings.maps simply wasn't used at all. You can assign the PR to me. It might be delicate to solve, because the matching rules are complex (at least to me). -- Joel