Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-01-2009, 02:21 PM   #1
LQ Newbie
Registered: Nov 2007
Posts: 1

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

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
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
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration