I am trying to add a breakpoint in my program using
b {line number}
but I am always getting an error that says:
No symbol t
Start gdb with the executable as a parameter, so that it knows which program you want to debug:
gdb ./myprogram
Then you should be able to set breakpoints. For example:
b myfile.cpp:25 b some_function