LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-30-2008, 04:11 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 212

Rep: Reputation: 32
How to obtain debug information from a section!!!!!


Hello,

If I compile a program. with -g option, I can use gdb (or DDD) to debug my program, and gdb obtain all debug information that need it.

Now, my question is if it is possible to use the same process in my own program??. In other words, Can I use a similar process that use GDB in my own program to obtain debug information???

I suppose that GDB use some library to do this works.

Best regards.
 
Old 10-30-2008, 05:10 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Do you mean you want to create a debugger of sorts? Anyone can do it - you just have to spend many hours reading the gcc documentation so that you can parse the symbol tables and debugging info. "ddd" took a shortcut of sorts by invoking gdb.
 
Old 10-30-2008, 05:23 AM   #3
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 212

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by pinniped View Post
Do you mean you want to create a debugger of sorts? Anyone can do it - you just have to spend many hours reading the gcc documentation so that you can parse the symbol tables and debugging info. "ddd" took a shortcut of sorts by invoking gdb.
Hello,

Then, it is more easy to invoke gdb commands from my own program like DDD.
Well , I'll search more information about how DDD do it.

Thanks.
 
  


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
Wifi not working on FC8. Unable to obtain IP information. neolithic_psyche Fedora 2 04-11-2008 02:48 PM
Yet another "startx won't work" question. Here's the debug information. tux_addict Debian 4 12-06-2007 03:07 AM
How to debug without having debug section in an executable ? unclesam Linux - Newbie 0 02-02-2006 07:23 AM
[debug]what does the following debug information mean icoming Programming 21 06-08-2004 03:13 AM
how to obtain cd session information nIMBVS Linux - Newbie 1 10-26-2003 06:25 PM


All times are GMT -5. The time now is 08:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration