Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: r6144 <r6k@sohu.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH][newbie] Make gdb accept -feliminate-dwarf2-dups stuff
Date: Wed, 14 Jan 2004 15:07:00 -0000	[thread overview]
Message-ID: <20040114150704.GA4517@nevyn.them.org> (raw)
In-Reply-To: <16389.22843.352984.894253@localhost.localdomain>

On Wed, Jan 14, 2004 at 10:59:07PM +0800, r6144 wrote:
Content-Description: message body text
> Hello, everyone:
> 
> Current CVS gcc has an option "-feliminate-dwarf2-dups" that
> generates dwarf2 debug info containing references across compilation
> units, which current gdb seems to be unable to parse.  I wrote a
> quick-and-dirty patch (against 20040103 snapshot) to make it work.
> 
> The patch isn't really clean (in particular it contains a known memory
> leak as indicated by the FIXME), and I don't really expect it to be
> included.  However, I think this patch *might* be useful to someone,
> since "-feliminate-dwarf2-dups" seems to reduce debug info size
> significantly for large projects (the effect is more clear when the
> DW* symbols for DWARF-2 relocation are deleted), which may be helpful
> to distributors making debug-info packages.  Maybe some of you may
> tell me some way to improve the patch, as well as to make it
> accessible to those needing similar functionality.
> 
> Hopefully you'll CC me since I'm not subscribed.

Thanks.  Unfortunately, we can't fix up and include the patch unless
you file a copyright assignment with the FSF.  You can do that, or wait
- a whole lot of people have needed this feature lately, and if no one
with an assignment beats me to it I'll probably do it myself this
month.  I skimmed your patch and it looks like you're doing it rather
differently than I planned to.

> +#include <search.h>

Neat, I hadn't seen this before...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2004-01-14 15:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-14 14:59 r6144
2004-01-14 15:07 ` Daniel Jacobowitz [this message]
2004-01-15  3:15   ` r6144
2004-01-15  4:39     ` Felix Lee
2004-01-15  4:56     ` Daniel Jacobowitz
2004-01-14 15:23 ` Andrew Cagney

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=20040114150704.GA4517@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=r6k@sohu.com \
    /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