Installing GDB (Debugging with GDB)

From Get docs

Appendix C Installing GDB

Requirements:    Requirements for building GDB
Running Configure:    Invoking the GDB configure script
Separate Objdir:    Compiling GDB in another directory
Config Names:    Specifying names for hosts and targets
Configure Options:    Summary of options for configure
System-wide configuration:    Having a system-wide init file