[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: gdb and 'c' programming

# gdb <program name>
gdb# r  (to run the program)
gdb# break filename:line (to set the breakpoint)
gdb# continue (to continue from the breakpoint)
gdb# n (to trace through)

Hope this helps..if you are in to GUI programs then DDD is the best

Aravind S

Anuj Kumar wrote:

> Hi,
> I want to use gdb debugger for 'C' program.
> I have compiled program using -g option.
> Now; I want see the program behavior Line by Line.
> How can I run 'C' program line by line?
> Waiting your valuable guidance.
> With regards,
> Anuj
> ---------------------------------------------
> Find out more about this and other Linux India
> mailing lists at http://lists.linux-india.org/

Living on Earth is expensive, but it does include a free trip
round the sun