LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-01-2009, 02:21 PM   #1
h.thirividi
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
How do I print a stack trace on linux


Hi,
I am actually involved in writing a stack trace as a part of my project. On searching, I got to know that there is a header called execinfo.h which helps me to print function names. But I am looking for something more than that like printing the arguments passed to the function and local variables. I would kindly request to help me in this regard.

Thanks in advance.
 
Old 04-01-2009, 04:23 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by h.thirividi View Post
I am actually involved in writing a stack trace as a part of my project.
Download the source for GDB and look at it. It should have everything you need to know about creating a stack trace with function names and parameter values.
 
  


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
Building a stack trace in C++ Kikazaru Programming 5 07-02-2006 04:10 PM
java: stack trace eantoranz Programming 3 04-25-2005 12:38 PM
stack trace of a process node047 Linux - Newbie 2 04-01-2005 10:11 PM
How To interpret kernel stack trace kklier Linux - Enterprise 6 08-22-2004 10:24 AM
Stack trace ust Linux - General 0 02-27-2004 03:30 AM


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