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

Re: your mail



Deepak.M.G forced the electrons to say:
> 
> Hi! guys,
> 
> 	How do I debug my C-Programs in linux?
> 
> 007

The standard linux debugger is gdb. Compile your program with the -g option to
the compiler and run gdb as

gdb a.out

It has an X11 front end called xxgdb, and another one called ddd that needs
motif/lesstiff.

A few other utilities that help you in debugging are strace and nm. You can
also use the core file generated in identifying specific problems.

Binand

- -- 
main(int c,char **v){while(!fork()){strcpy(v[0],tmpnam(0));sleep(1);}}
A program that changes its name and pid every second.
Try this program at your own risk!   ---> Binand <---

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------