The .debug_info section of an ELF contains information generated by compilers to describe the source code while debugging by keeping symbols and its type, scope, file, line number, etc.
The .debug_info[1] section is one of the main components of DWARF[2][3] debug info files.
[4] This is generated by a compiler when -g switch or its variants are used.