Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: MCG LU Fengcheng <Fengcheng.LU@alcatel-sbell.com.cn>
Cc: gdb@sourceware.org
Subject: Re: Why are NOT the function parametters in the stack. They are in the register!
Date: Wed, 02 Nov 2005 13:45:00 -0000	[thread overview]
Message-ID: <20051102134528.GC26674@nevyn.them.org> (raw)
In-Reply-To: <7E98B33B3500C0409DBEC5C0E3FDEF120230B583@htmail.sbell.com.cn>

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


  reply	other threads:[~2005-11-02 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-02  6:11 MCG LU Fengcheng
2005-11-02 13:45 ` Daniel Jacobowitz [this message]
2005-11-02 18:28 ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051102134528.GC26674@nevyn.them.org \
    --to=drow@false.org \
    --cc=Fengcheng.LU@alcatel-sbell.com.cn \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox