If you can see the source and set a breakpoint, you probably have debugging symbols. However, the usual sequence:
gcc -g -o (outputname) (source files...) gdb outputname
Give more details about what you are doing and what messages you see, and we can be more specific.
source share