Questions
You have to add extra parameter -g, which generates source level debug information. It will look like:
gcc -g prog.c
After that you can use gdb in common way.
~ Answered on 2012-10-09 06:40:40