Why were GNU binutils and GDB merged as one package?
Asked Answered
R

1

12

See, especially, the tags section.

What was the rationale behind this decision? Does the merge affect the suggested way to build latest binutils and GDB? (In fact when I checked out binutils-2_25_1 and ran make all && make install, I got gdb as well.)

Rozele answered 2/12, 2015 at 7:38 Comment(2)
Did you look into some mailing list related to binutils or to gdb? Did you ask [email protected] (he is a very nice guy, and I am sure he would answer you)?Disapprove
@BasileStarynkevitch Thank you very much for the information!Rozele
S
23

I did the conversion. The reason I made them a joined repository was partly historical and partly practical.

Historically gdb and binutils have pretty much always been together. They were in a single source tree (called "devo") when they were maintained inside Cygnus. Then, later, when sourceware.org was set up, they shared a repository (called "src"). You may not have noticed this because the repository used CVS modules to let developers check out just a part of the tree.

Practically, gdb and binutils share a lot of code. They share their build infrastructure (configure and the like); they share support libraries (the libiberty and include) directories; they share the BFD library; and they share the opcodes library. To me it made more sense to keep them together, both to avoid constant merging back and forth (this is already done for some components with GCC, and it's a real pain), and also to try to minimize problems where changes to one project negatively affect the other. For example, at least in theory people doing regular development on BFD should build both gdb and binutils.

The top-level configure script used by the shared repository lets the developer disable any particular directory using --disable-DIR. For example, if you don't want to build gdb, pass --disable-gdb.

Sturdivant answered 2/12, 2015 at 14:40 Comment(2)
Wonderful answer. Also nice to know --disable-gdb though I'm just happy with building both at once.Rozele
Would you mind also merging gcc and glibc into it? :-)Belton

© 2022 - 2024 — McMap. All rights reserved.