bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to debug the program


From: Kevin Buettner
Subject: Re: how to debug the program
Date: Mon, 19 Nov 2001 09:28:02 -0700

On Nov 18,  7:30pm, susila bahri wrote:

> I have tried to debug my program by using 'gdb -g
> filename.c' but there is no result. Could you help me
> please ?

First make sure you have your program compiled.  If it consists of only
a single .c file, you can do this as follows:

    gcc -o filename -g filename.c

In order to debug it, you should invoke GDB like this:

    gdb filename

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]