public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: Max Asbock <masbock@us.ibm.com>
Cc: gcc@gcc.gnu.org
Subject: Re: problems parsing dwarf frame info on amd64 optimized code
Date: Wed, 10 Mar 2004 19:41:00 -0000	[thread overview]
Message-ID: <20040310194055.GA2224@redhat.com> (raw)
In-Reply-To: <200403081044.03933.masbock@us.ibm.com>

On Mon, Mar 08, 2004 at 10:44:03AM -0800, Max Asbock wrote:
> When I turn on the -O flag things fall apart. This is with gcc 3.2.2.
> The parser finds two rules in the CIE:
> CFA_def_cfa r7+0x8           (rsp)
> CFA_offset r16 at cfa-0x8  (return address)
> and then in the FDE it finds:
> ...
> CFA_def_cfa_offset <offset>

This is correct.

> This works for stepping from the first frame to the second, but
> on the next step it fails, since the CFA is read again from r7 (rsp)
> which hasn't changed.

Huh?  I think you need to provide a concrete example because what
you're saying doesn't make any sense.  Particularly "stepping from
first frame to the second".  There's only one frame in any function
generated by gcc...

> And it seems that the CFA <offset> is the
> offset relative to the current CFA, not relative to the value in rsp.

Incorrect.



r~

  parent reply	other threads:[~2004-03-10 19:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-08 19:18 Max Asbock
2004-03-10  2:18 ` Jim Wilson
2004-03-10 19:41 ` Richard Henderson [this message]
2004-03-11 18:45   ` Max Asbock
2004-03-11 21:00     ` Richard Henderson

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=20040310194055.GA2224@redhat.com \
    --to=rth@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=masbock@us.ibm.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).