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

Re: gdb and 'c' programming



Thanks for response.
This is useful. If I have one '.c' file then OK.
But I have complete Project, Number of '.c' file is there.
And i am using 'Makefile' project concepts.
In this case how to start debugging line by line.
Waiting you guidence.
with regards,
Anuj

****Aravind Sadagopan  wrote ***********

Date: Fri, 20 Oct 2000 18:10:36 +0800
From: Aravind Sadagopan <aravind.sadagopan@xxxxxxxxxxxxxxx>  | Block address
Subject: Re: [LIP] gdb and 'c' programming
To: linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
Reply-to: linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
        Add Addresses



Run
# 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
choice

Cheers
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
>