How to see the source code of glibc in gdb Clone the repo : $ git clone https://github.com/sagsango/glibc-lab Run the script : $ ./init-lab.sh Now add your program in lab and attach gdb $ cd lab $ vim myprogram.c $ make $ gdb ./myprogram