4

I've downloaded the GDB source:

git clone git://sourceware.org/git/binutils-gdb.git

now how do I generate the documentation from source as can be downloaded from: https://sourceware.org/gdb/current/onlinedocs/ ?

I'm especially interested in the HTML documentation, especially if it is possible to build a single page version of it.

I'm at GDB master f47998d69f8d290564c022b010e63d5886a1fd7d after gdb-8.2-release.

Ciro Santilli OurBigBook.com
  • 18,092
  • 4
  • 117
  • 102

2 Answers2

3
cd binutils-gdb/gdb
./configure
cd doc
make html MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split'
ls *.html

This assumes that you have makeinfo installed; that should be something like apt-get install texinfo on debian-like systems.

1

If you run:

cd binutils-gdb
./configure
make html MAKEINFO=makeinfo MAKEINFOFLAGS='--no-split'
find . -name '*.html'

then it takes a while, but generates single page HTML docs for all Binutils projects, which is also convenient.

-j $(nproc) does not work unfortunately.

I found that GAS docs for example could not be easily built as GDB by themselves. If you try to:

cd gas
./configure
cd doc
make html

then it fails with:

as.texi:23: @include: could not find bfdver.texi

so there seems to be a BFD dependency.

Tested on Ubuntu 18.04.

Ciro Santilli OurBigBook.com
  • 18,092
  • 4
  • 117
  • 102