From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29047 invoked by alias); 14 Apr 2008 20:05:02 -0000 Received: (qmail 28123 invoked by uid 48); 14 Apr 2008 20:04:17 -0000 Date: Mon, 14 Apr 2008 20:05:00 -0000 Message-ID: <20080414200417.28085.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/35880] GNAT does not generate debugging information on imported entities In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sam at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg01009.txt.bz2 ------- Comment #8 from sam at gcc dot gnu dot org 2008-04-14 20:04 ------- Well, as far as I can tell, the bug doesn't have anything to do with shared memory. It's just that GNAT does not emit any information for imported entities, as demonstrated in the following example: package P is Foobar : Integer; pragma Import (C, Foobar); end P; % gcc -g -S -o - p.ads | grep -i foobar [no output] Removing the "pragma Import" will show that debugging information, including type-related information, is generated. GNAT should IMO be able to do a better job here and store the information for the symbols it imports if the debugging format supports it. Changing the bug title and classifying as an enhancement request. -- sam at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam at gcc dot gnu dot org Severity|normal |enhancement Priority|P3 |P5 Last reconfirmed|2008-04-10 06:21:40 |2008-04-14 20:04:16 date| | Summary|GNAT (GCC) Ada does not |GNAT does not generate |generate symbolic debug for |debugging information on |shared memory |imported entities http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35880