<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=204555411-10082007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007>We are using MPC 
8541 processor. Running Linux 2.6.11.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007>I have a question 
regarding unwinding stack frame in userland.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=204555411-10082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007>To understand the 
stack frame format, I am using gdb to walk through nested function calls 
frame.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007>I am not able to 
understand&nbsp;where the PC (program counter) of callee functions&nbsp;is saved 
on the stack/register.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=204555411-10082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007>Here are my 
questions:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007><SPAN 
class=204555411-10082007>1- Is there any available software like "pstack" ported 
to powerpc that I can use?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007><SPAN 
class=204555411-10082007>I know the stack pointer&nbsp;of &nbsp;the last frame 
is save in "R1" register.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007><SPAN 
class=204555411-10082007>2- How about PC, and number of the input parameters to 
the function.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007><SPAN 
class=204555411-10082007></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007><SPAN 
class=204555411-10082007>Many thanks in advance,</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=204555411-10082007><SPAN 
class=204555411-10082007>BZ</SPAN></SPAN></FONT></DIV></BODY></HTML>