LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-26-2003, 01:39 AM   #1
Geeky_Kid
LQ Newbie
 
Registered: Dec 2003
Location: 22 Degrees by 44 Degrees
Distribution: Slack, OneBase, MDK mostly
Posts: 20

Rep: Reputation: 0
GCC, GDB GUIs


Hi,

(1) Which is the user-friendli-est front-end to gcc and gdb?

(2) If I want to give a debugger with my application, then:

(a) is it possible?
(b) how can this be done?
 
Old 12-26-2003, 05:22 AM   #2
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
In answer to (1), probably KDevelop or Ajunta. I'm not quite sure what you mean by (2), can you explain in more detail?

Alex
 
Old 12-27-2003, 01:52 AM   #3
nibbler
Member
 
Registered: Oct 2003
Location: Croatia
Distribution: Fedora 4
Posts: 46

Rep: Reputation: 15
your second part is a bit confusing. If you ment to debug C++ program, you add -ggdb to compiler options:
g++ -ggdb MyProg.C
Then you run GDB the output file:
gdb a.out.
 
Old 12-27-2003, 01:19 PM   #4
Geeky_Kid
LQ Newbie
 
Registered: Dec 2003
Location: 22 Degrees by 44 Degrees
Distribution: Slack, OneBase, MDK mostly
Posts: 20

Original Poster
Rep: Reputation: 0
Actually it might sound stupid now, but my second options was this -- if I develop an "application" and that application runs into some errors, instead of simply printing out the error, I want to give the user the option to view the particular segment of code and modify it accordingly :-) After all this is the benfit of open-source :-D

Science fiction, huh.
 
Old 12-28-2003, 03:42 AM   #5
nibbler
Member
 
Registered: Oct 2003
Location: Croatia
Distribution: Fedora 4
Posts: 46

Rep: Reputation: 15
then distribute programs with source, and compile with -g and/or -ggdb.
 
  


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
normal gdb and spec gdb for kgdb Igor007 Programming 1 09-23-2005 04:15 PM
normal gdb and spec gdb for kgdb Igor007 Linux - Newbie 1 09-23-2005 01:41 PM
GCC GDB error codes morph_ind Programming 3 07-07-2005 12:57 AM
gcc gdb errno & rpm difficulties jg167 Fedora 0 10-26-2004 04:46 AM
How to programmatically break into gdb from gcc C++ source cj12345 Programming 7 09-16-2004 05:15 AM

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

All times are GMT -5. The time now is 05:27 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