LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2006, 06:04 AM   #1
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
programming tools to aid C development


Hi,

I wanted to ask about the popular tools to aid the development of C applications.
Tools which would allow me to avoid as much as possibe the infamous "Segementation Fault".
I've used gdb, ddd (gui frontend) but didnt find it of much use to track the causes of seg faults.
 
Old 06-03-2006, 09:46 AM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
I use gdb a lot for debugging C/C++ code, and it's probably the most flexible and powerful C/C++ debugger there is, although that means it's also pretty hard to use. The learning curve is high, but any time spent learning it will ultimately be worth it.

That aside, another useful tool for debugging C/C++ code would be a system-call tracer. On BSD systems, you've got ktrace available right out of the box; another good one is strace. I don't know if ktrace is available for Linux, but strace is available for both Linux and *BSD.
 
Old 06-03-2006, 10:07 AM   #3
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
Tools:
Part of Linux - mtrace, electric fence
Other tools - splint, uno, clint, valgrind, gprof

You can google for tutorials, and if you don't have the tool, you can download and install it. For example, electric fence is normally just linked in to your executable. You run the code, it complains.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gui development tools lini Linux - General 2 02-10-2006 06:10 PM
How to get development tools blackspade Linux - Newbie 3 08-17-2005 03:50 AM
Mandrake 10 and Development tools Hollowpoint Linux - Newbie 9 03-24-2005 01:16 PM
Development Tools Vectrox Debian 1 05-31-2004 07:02 AM
Accessing Development tools Flak Pyro Linux - Newbie 8 07-15-2003 02:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration