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