gdb: problem while debug an executable file

I created one file (test.cpp)and complied it and get the executable file(test) and run it.It is giving the out put but when I am trying to debug that executable.I am getting the error --

please tell me the solutions??

Thanks in advance .....

$ gdb test
(gdb) b main
breakpoint 1 at ...
(gdb) r
Starting program: ...
Breakpoint 1, .... in main ()
(gdb)

Thanks a lot for replying.It solved my problem.:smiley:

:b::b::b::b::b::b: