Originally Posted by shyjuu
I want to go line by line execution, similar to Borland C, in which when i press F7 it executes the code line by line, Is this possible in gcc.
Who in the world still uses Borland C? I honestly have not heard that word this entire millennium. I shouldn't knock it, I used it a lot back in the 80's as well as TurboDebugger, which was also a Borland product I believe.
What brianL and jdkaye said. GDB is very good and if you're not going to take the time to review an answer or ask a follow up, but just present your terms on exactly what you want, then you're not going to be too successful in your Linux ventures.
A thing to note is that GDB integrates very well with Emacs and when you run GDB from within Emacs, you get some more helpful UI based controls, all available in the command line, but just more well presented within Emacs.
So, run Emacs to create a Hello World! C source, you actually can compile from within Emacs using the compile command, but you should edit the command to just be "gcc -o <output-file-name> <source-file-name> and it will do a simple compile. You then can debug from within Emacs by issuing the gdb command from with Emacs. I think you'll like the interface, if you actually give it a try.