This is the mail archive of the
mailing list for the GDB project.
Re: [PATCH][newbie] Make gdb accept -feliminate-dwarf2-dups stuff
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: r6144 <r6k at sohu dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 14 Jan 2004 10:07:04 -0500
- Subject: Re: [PATCH][newbie] Make gdb accept -feliminate-dwarf2-dups stuff
- References: <email@example.com>
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...
MontaVista Software Debian GNU/Linux Developer