This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/35880] GNAT does not generate debugging information on imported entities



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]