<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">nidhi mittal hada</b> <span dir="ltr"><<a href="mailto:nidhimittal19@gmail.com">nidhimittal19@gmail.com</a>></span><br>
Date: Tue, Aug 6, 2013 at 2:16 PM<br>Subject: Understanding disassembly x86 + understanding function call + parameter pass and stack frame<br>To: Kernelnewbies <<a href="mailto:kernelnewbies@nl.linux.org">kernelnewbies@nl.linux.org</a>><br>
Cc: Mulyadi Santosa <<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>><br><br><br>Hi All,<br><br>I am using crash tool to analyze core dump obtained from red hat linux on x86_64 platform.<br>
<br>And crash tool gives a stack trace of panic.<br>But its does not show function parameters which were passed in this stack trace.<br>
<br>So i have to disassemble and understand the value of parameters passed to these functions, while it panicked.<br>Which i am not able to understand much. <br><br>I would request help in knowing, how to understand disassembled function call , on x86_64 arch.<br>
<br>Putting some of the doubts.. <br><br>a)like which sequence the parameters, return address, etc are pushed on stack?<br>b)Which registers are used, if some registers play some spl. role ?<br>c)lets say for a program a.c i use gcc -S a.c ...do we have some other command to generate <br>
somewhat more clear assembly code, may be with some comments in english <br><br>Any kind of help in understanding this will be appreciated ..<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br>Nidhi<br><br><br>
</font></span></div><br><br clear="all"><br>-- <br>Thanks & Regards <br>Nidhi Mittal Hada<br><br><a href="http://nidhi-searchingmyself.blogspot.com/" target="_blank">http://nidhi-searchingmyself.blogspot.com/</a><br>
<br>