This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][newbie] Make gdb accept -feliminate-dwarf2-dups stuff


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]