The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
get stack trace from C program on Solaris 8 rydahl Filesystems, Disks and Memory 4 03-23-2007 10:53 AM
help required - stack trace ranj@chn UNIX for Advanced & Expert Users 9 09-26-2006 05:20 AM
Need to capture ERROR msg and stack trace gswhoops Shell Programming and Scripting 2 01-11-2006 04:51 PM
BackTrace wojtyla High Level Programming 6 10-04-2005 06:38 AM
Core file without a readable stack trace ciregbu High Level Programming 0 10-02-2002 08:42 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-02-2005
Registered User
 

Join Date: Oct 2005
Posts: 7
printing a stack trace with backtrace

I am trying to print a stack trace programatically using backtrace and backtrace_symbols.

The problem is that the stack being printed in a mangled format. Is there a way to get the output in more of a human readable form?

I am using Red Hat and the program is written in c++.
Reply With Quote
Forum Sponsor
  #2  
Old 11-03-2005
Registered User
 

Join Date: Oct 2005
Posts: 7
any help would be greatly appreciated
Reply With Quote
  #3  
Old 11-03-2005
Registered User
 

Join Date: Nov 2005
Posts: 5
Really has nothing to do with redhat, or backtrace (whatever that is). C++ just mangles names, so you have to live with it. Those are the names of your functions and that is as human readable as it's getting. I believe the managling is just encoding the parms into the name of the function/method so as to support polymorphism.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0