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 03-23-2011, 02:15 AM   #1
nikunjbadjatya
Member
 
Registered: Sep 2009
Location: Bangalore
Posts: 33

Rep: Reputation: 0
C program - RTLD - Help with Debugging


Hi All,

I am working on RTLD ( Run Time Link eDitor ) module. Which helps to relocate shared objects in the memory.
As an initial investigation. I thought of learning about the code flow when we run a simple "hello world" program. i.e which all library functions are called with what parameters.

My questions to you is:
Is there any debugging tool which lets me know what are functions ( system, library, etc. ) are called with their respective parameters. A complete list of them. Or a diagrammatic flow of control. when I run a hello world program in a shared environment. !
Ofcourse in a Linux Environment. ( 32 bit, CentOS 5.5 )

Awaiting for useful information from LQ members. !

Thanks,

Nikunj
Bangalore, India
 
Old 03-23-2011, 10:22 PM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
See if strace helps: http://linux.die.net/man/1/strace
and ltrace too: http://linux.die.net/man/1/ltrace
 
1 members found this post helpful.
  


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
Debugging an exexutable C program akm3 Programming 6 12-18-2008 10:45 AM
Help with debugging Pascal program wanted. Doctorzongo Programming 4 04-13-2008 05:11 PM
Debugging C++ so called from java program exitsfunnel Programming 3 10-12-2005 03:01 PM
Debugging Multithreaded Program villie Programming 2 08-17-2004 11:24 AM
program logic comparison and debugging help needed frieza Programming 4 03-12-2004 11:14 PM

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

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