This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v5 1/8] Move utility functions to common/
- From: Doug Evans <dje at google dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>, Sergio Durigan Junior <sergiodj at redhat dot com>, gdb-patches <gdb-patches at sourceware dot org>, Aleksandar Ristovski <ARistovski at qnx dot com>
- Date: Mon, 19 May 2014 15:48:16 -0700
- Subject: Re: [PATCH v5 1/8] Move utility functions to common/
- Authentication-results: sourceware.org; auth=none
- References: <20140319223004 dot 14668 dot 20989 dot stgit at host1 dot jankratochvil dot net> <20140319223014 dot 14668 dot 89536 dot stgit at host1 dot jankratochvil dot net> <m3pplbcqq3 dot fsf at redhat dot com> <20140518190534 dot GA19591 at host2 dot jankratochvil dot net> <87r43py6g3 dot fsf at fleche dot redhat dot com>
On Mon, May 19, 2014 at 11:22 AM, Tom Tromey <tromey@redhat.com> wrote:
> Sergio> Can't this go in independently? I think they are nice cleanups.
>
> Jan> I do not think it is right without the later parts of the patchset
> Jan> - code in gdb/common/ should be used by both gdb and gdbserver.
> Jan> Otherwise the code could remain in gdb/ only.
>
> If we had smaller files in common/ then we could put generically useful
> things there and not care so much, relying on the linker to eliminate
> bloat.
How much bloat are we talking about?
Plus there's always -ffunction-sections -Wl,-gc-sections.
I've been meaning to try it, if only to see what more can be removed from gdb.