LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-05-2007, 02:45 PM   #1
Harald Rudell
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
gdb in glibc functions


Hello,

I wanted to single-step in the source code of a handful functions that are part of glibc6. Getting symbols and stepping through the machine code is easy, however, to do source code you need line number information.

What is the proper way of doing this?
  1. Compiling the entire glibc6 which is several megabytes of source code - which is a lot of effort and may cause subsequent issues
  2. Compile the handful of functions in a separate shared library that you debug - very nice, however I attempted this, and the functions do not handily compile by themselves due to some obscure dependencies. May be workable.
  3. Pull the functions into your own program, which may or may not be possible and may suffer from same difficulties as in b.
  4. Something else, such as downloading a debug-compiled libc from somewhere or some other easy way out
Any suggestions? I Googled and it appears not many people do this...

Regards,

Harald Rudell
 
  


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
LXer: OpenOffice.org Calc functions, part 1: Understanding functions LXer Syndicated Linux News 0 03-31-2007 12:01 PM
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
gdb .. looking for 32 bit gdb.. for ia64 suse.. nkshirsagar SUSE / openSUSE 0 12-09-2004 03:02 AM
pointers to functions/member functions champ Programming 2 03-28-2003 06:22 PM

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

All times are GMT -5. The time now is 06:57 PM.

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