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

Re: Linux ddd debugger for C



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 ?
> 
1. compile with -gN option, where N is level of debug info, defaults to 1.
i.e: -g , -g2 , -g3
2. read info on gdb and gcc. ddd is really a front-end for various 
debuggers,
and you"ll want to use ddd as a gdb front end.

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


-- 
--   
Omer Mussaev    051-308-214   mailto:omerm@mercury.co.il
systems programmer, Mercury Interactive/RND/Conduct/core


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