- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Return address of a function in a frame
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
Forums
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
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
тАО02-25-2010 08:52 PM
тАО02-25-2010 08:52 PM
Return address of a function in a frame
I am working on HP Itanium Stack unwinding functions. I need to find out the return address of a function in each frame of a stack. Is there any API which gives me this value?
Thanks,
Suchitra
- Tags:
- libunwind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 11:13 PM - edited тАО08-21-2011 08:07 PM
тАО02-25-2010 11:13 PM - edited тАО08-21-2011 08:07 PM
Re: Return address of a function in a frame
You call uwx_step(3X) to get the next IP.
See recent thread:
http://h30499.www3.hp.com/t5/Languages-and-Scripting/stack-pointer-values-using-uxw-show-strange-behaviour/m-p/4590939
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 11:58 PM
тАО02-25-2010 11:58 PM
Re: Return address of a function in a frame
I am using uwx_step API to step through each frame in a Stack. The issue i have is to find out the return address of the function which corresponds to a particular frame. I have the function implemented in HP PARISC where it takes the value at current frame's curr_pcoffset to get the return address. What is the corresponding value in HP Itanium?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2010 12:52 AM - edited тАО08-21-2011 08:05 PM
тАО02-26-2010 12:52 AM - edited тАО08-21-2011 08:05 PM
Re: Return address of a function in a frame
>I am using uwx_step API to step through each frame in a Stack.
The current context contains the PC. If you want the PC of the caller, you need to call uwx_step.
>I have the function implemented in PA-RISC
You throw that broken design away.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2010 08:27 PM
тАО02-26-2010 08:27 PM