- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Stack trace from a program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 05:34 AM
тАО10-20-2004 05:34 AM
Stack trace from a program
Do not know if someone already asked this before.
I would like to print a stack trace (function + source file + source line) in a program to give information on where an exception was thrown, where a signal was caught etc... I tried to use U_STACK_TRACE() function but it does not give the source file and source line (even using -g option). Is there an example of code to do such trace ?
We run HP-UX on PA-RISC and we compile 64 bits applications using aCC 3.52.
uname -r
B.11.11
Thanks for any feedback
Best regards
Joseph Canedo
- Tags:
- U_STACK_TRACE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2004 05:42 AM
тАО10-20-2004 05:42 AM
Re: Stack trace from a program
Maybe this link from itrc would help,
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062966592
the itrc doc id is UNX1000205.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2012 10:01 PM
тАО02-04-2012 10:01 PM
Re: Stack trace from a program
>would like to print a stack trace (function + source file + source line). I tried to use U_STACK_TRACE() but it does not give the source file and source line (even using -g option).
The Integrity version of U_STACK_TRACE() will print the source and line info, even without -g.
For PA, you will have to use -g and gdb to map hex addresses to source positions.