LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-05-2014, 08:32 AM   #1
fluchti
LQ Newbie
 
Registered: Jan 2014
Posts: 1

Rep: Reputation: Disabled
learning to use gdb gcc // a string in something i dont understand


i did write firstprog.c with easy to say hello world! 10 times now i wanted to see it with gdb

i use : gdb -q ./a.out

in the book what im reading there stands after the: gdb -q ./a.out ->

"using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1"

at me comes: "Reading symbols from /home/blub/booksrc/a.out...(no debugging symbols found)...done."

and thats what i not understand!

sry for my bad english i try to get better every day and i will and sry for these easy and nooby question but i didnt find the answer now for 4 days in the internet or i searched wrong!

edit: if u need fotos or something tell i try to give directly!

thank you very much for reading it and i hope u can answer and help me!

Last edited by fluchti; 01-05-2014 at 09:33 AM. Reason: thank you for looking for my problem i got the relution for the prob! thank you anyway!!! =)
 
Old 01-06-2014, 04:57 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It just means that the debugging symbols were not included in the file. Recompile with the -g option which directs the compiler to include them. It will then be able to list the source file name and line of a bug, and gdb will be able to access those files to display some context information.

Now the base shared libraries will not have debugging symbols. This should be a problem as the application object file will (with the -g). To get the debugging symbols with the shared libraries you usually have to go to getting the development libraries instead - then, rather than using the shared libraries, you use the development libraries which are object libraries, and can include the debugging symbols.

Last edited by jpollard; 01-06-2014 at 05:00 PM.
 
1 members found this post helpful.
  


Reply



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
Dont understand how to install kernel development packages and gcc Hollomankilla Linux - Newbie 3 10-22-2007 11:21 PM
I dont understand this! zeldafanfreak Linux - Hardware 1 08-12-2005 02:52 PM
i dont understand!!!! Fathonkey Linux - Software 17 05-29-2003 11:37 AM
Dont Understand Sifvion Slackware 27 03-26-2003 01:49 PM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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