After "export LD_LIBRARY_PATH=/usr/lib/debug" on shell, you have to reassign the correct path for GDB to locate debugging symbols/function names for glibc-2.7( as follows 4 steps ).
1. readelf -wi /usr/lib/debug/libc-2.7.so > dbdump.txt( find where is the debug version glibc build from )
2. Search "printf.c" in dbdump.txt ( you will find that it is located at /build/buildd/glibc-2.7/build-tree/glibc-2.7/stdio-common )
3. gdb /usr/lib/debug/libc-2.7.so
4. set substitute-path /build/buildd/glibc-2.7/build-tree /path to your current directory ( see info gdb )