This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/35880] GNAT does not generate debugging information on imported entities
- From: "sam at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Apr 2008 20:04:17 -0000
- Subject: [Bug ada/35880] GNAT does not generate debugging information on imported entities
- References: <bug-35880-16034@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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