public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sam at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/35880] GNAT does not generate debugging information on imported entities
Date: Mon, 14 Apr 2008 20:05:00 -0000	[thread overview]
Message-ID: <20080414200417.28085.qmail@sourceware.org> (raw)
In-Reply-To: <bug-35880-16034@http.gcc.gnu.org/bugzilla/>



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


  parent reply	other threads:[~2008-04-14 20:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09  2:55 [Bug ada/35880] New: GNAT (GCC) Ada does not generate symbolic debug for shared memory knoxj at att dot net
2008-04-09  2:59 ` [Bug ada/35880] " knoxj at att dot net
2008-04-09  3:01 ` knoxj at att dot net
2008-04-09  6:46 ` charlet at gcc dot gnu dot org
2008-04-09 15:20 ` knoxj at att dot net
2008-04-09 15:26 ` charlet at adacore dot com
2008-04-09 16:19 ` knoxj at att dot net
2008-04-10  6:22 ` charlet at gcc dot gnu dot org
2008-04-14 20:05 ` sam at gcc dot gnu dot org [this message]
2008-04-15 13:32 ` [Bug ada/35880] GNAT does not generate debugging information on imported entities knoxj at att dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080414200417.28085.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).