public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com> To: drow@sources.redhat.com Cc: gcc-prs@gcc.gnu.org, Subject: Re: debug/8095: missing dwarf info for parent class Date: Mon, 17 Mar 2003 14:26:00 -0000 [thread overview] Message-ID: <20030317142601.10410.qmail@sources.redhat.com> (raw) The following reply was made to PR debug/8095; it has been noted by GNATS. From: Daniel Jacobowitz <drow@mvista.com> To: Horsley Tom <Tom.Horsley@ccur.com> Cc: Wolfgang Bangerth <bangerth@ticam.utexas.edu>, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: debug/8095: missing dwarf info for parent class Date: Mon, 17 Mar 2003 09:18:29 -0500 On Mon, Mar 17, 2003 at 07:59:02AM -0500, Horsley Tom wrote: > > > If there are ways to tie debug output to a certain member of a class > (just > > > as we do for vtables), then I would say this is a good idea. If someone > > > doesn't like this, then compile your library with -g. > > > > > > But that's just my opinion. > > > > I guess that sounds pretty reasonable to me, too. > > I'm not sure the intent of my original bug report made it through > this discussion :-). I don't see why you'd always have to emit > debug info for every header file in every compilation unit. > Just emit debug info for types that are "used". The point of the > bug report was to say that the "this" variable should count > as "using" a type, and if a derived class is "used", then all its > base classes should be "used" as well (after all, there isn't > all that much difference between a base class and a member variable, > and you wouldn't leave out member variables just because they > weren't directly referenced would you?). > > Of course I say this is total ignorance of how gcc decides to emit > debug info :-). The problem is that this causes debug info for that class to be emitted multiple times. If you compile the source file that causes the base class to be emitted - there must be one, or your program won't link - then that file should have the debug info. I still need to verify that it' being output in the right place. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer
next reply other threads:[~2003-03-17 14:26 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-17 14:26 Daniel Jacobowitz [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-04-15 15:05 bangerth 2003-04-15 13:36 Daniel Jacobowitz 2003-03-17 13:06 Horsley Tom 2003-03-14 22:06 Wolfgang Bangerth 2003-03-14 21:56 Wolfgang Bangerth 2003-03-14 21:56 Daniel Jacobowitz 2003-03-14 21:36 Daniel Jacobowitz 2003-03-14 21:19 bangerth 2002-10-01 12:16 Daniel Jacobowitz 2002-10-01 5:06 Horsley Tom 2002-09-30 13:46 Daniel Jacobowitz 2002-09-30 5:46 tom.horsley
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=20030317142601.10410.qmail@sources.redhat.com \ --to=drow@mvista.com \ --cc=drow@sources.redhat.com \ --cc=gcc-prs@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: linkBe 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).