[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Building a gdb-multiarch and binutils-multiarch with --enable-targets=all



        Hey

 I recently discovered that gdb could be configured with
 --enable-targets-all thanks to Ulrich Weigand; gdb then supports
 multiple targets in the same build.  Current usr/bin/gdb on amd64 is
 about 4.2 MB and an --enable-targets=all one is about 21 MB, so it
 probably wouldn't be acceptable since gdb is often installed.  So I'd like
 to propose a new gdb-multiarch package for this.  This would mostly
 obsolete the case for a cross-gdb, but I could imagine this still being
 somewhat useful, so I don't think I would recommend removing this
 support.

 Concerning binutils-multiarch, it's currently built with a hardcoded
 list of targets instead of --enable-targets=all; I did a test build
 with "all" and found that the difference is from:
-rw-r--r-- root/root   2896560 2011-01-12 23:57 ./usr/lib/libbfd-2.21-multiarch.so
-rw-r--r-- root/root   2802888 2011-01-12 23:57 ./usr/lib/libopcodes-2.21-multiarch.so

 to:
-rw-r--r-- root/root   6760352 2011-01-17 20:40 ./usr/lib/libbfd-2.21-multiarch.so
-rw-r--r-- root/root  13413280 2011-01-17 20:40 ./usr/lib/libopcodes-2.21-multiarch.so

 So from 5.69 MB to 20.1 MB.  Given that this package is seldomly
 installed on end-user systems, I would propose that we just make
 --enable-targets=all the default for binutils-multiarch.  This would
 make packaging simpler and would support pretty much all architectures
 out there.

 How do people on this list feel about these proposals?

    Cheers,
-- 
Loïc Minier


Reply to: