Re: Why are NOT the function parametters in the stack. They are in the register!

Daniel Jacobowitz
2005-11-02T13:45:37Z

On Wed, Nov 02, 2005 at 02:07:26PM +0800, MCG LU Fengcheng wrote:
> (gdb) p &traceType
> Address requested for identifier "traceType" which is in register $eax
> (gdb) p &fmt
> Address requested for identifier "fmt" which is in register $eax
>
> gdb complains fmt and traceType are in the register eax. Why not in the stack. In fact, lineNo and filename are in the stack. Gdb can print their address out.
>
> I check the eax value. It is zero. I also check the stack. I found the fmt and traceType address were in the stack.
>
> It's the gdb issue? I can't understand it.

Usually this means they are no longer "available", but debug
information has failed to represent that fact. They were loaded
from the stack, used, and then not used after the current call returns.

Don't worry about it.

--
Daniel Jacobowitz
CodeSourcery, LLC