Installing GDB (Debugging with GDB)

From Get docs
Gdb/docs/latest/gdb/Installing-GDB


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