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

Re: Linux ddd debugger for C



You need to compile the program with debug info. I think the option is "-g".

You also probably don't want to use optimizations on debug code.

                    Shachar


Mike Almogy wrote:

> Hi list.
>
> I installed ddd v3.2 and ddd v3.1 and in both of them i can not see the
> source code of my program.
> I wrote a simple program called hello.c , compiled it with gcc -Wall
> hello.c -o hello and then tried to look at it in the ddd.
>
> I can execute the program but can't view the source code.
> If i try to load the source code manually with the open source command i
> don't see it, i just see some .h files and one init.c file.
> I tried to change the path for the source code but it does not work.
>
> what do i need to do in order to fix it ?
>
> Thanks,
>
> Mike
>
> (P.S , has someone here wrote a C program that uses the MySQL database ? i
> will like to ask him/her some question )
>
> ---------------------------------------------------
> Mofet Institute - Computer Dpt.
> +972-3-6901415
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il