Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Joel Brobecker <brobecker@gnat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Tru64 stack unwinding fix
Date: Tue, 18 Jun 2002 16:52:00 -0000	[thread overview]
Message-ID: <3D0FC7A0.10601@cygnus.com> (raw)
In-Reply-To: <20020614120726.G17001@gnat.com>


> I'm sorry the test case involves Ada, but that is the only way
> I found to reproduce it at the time when I looked at this problem.

I suspect a non-ada aware GDB and a breakpoint on 
*__hstTransferRegistersPC would do the trick :-)


> Here is the ChangeLog:
> 2002-06-14  Joel Brobecker  <brobecker@gnat.com>
>         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
>         current frame using only the first stack size adjustment. All
>         subsequent size adjustments are not considered to be part of
>         the "static" part of the current frame.
>         Compute the address of the saved registers relative to the
>         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
>         in use in this frame.
> 
> Ok to commit?

Yes (you're in a better position then most to test it).  The change to 
handle FP and alloca() is very important and something often missed.

 > +   /* At this point, we know which of the Stack Pointer of the Frame 
Pointer

  .. or the ..

enjoy,
Andrew

PS: Some things unrelated to your patch I noticed:

> !           vfp = read_next_frame_reg (next_frame, ALPHA_GCC_FP_REGNUM);

I think someone should re-implement read_next_frame_reg() using:

/* Unwind the stack frame so that the value of REGNUM, in the previous
    frame is returned.  If VALUEP is NULL, don't fetch/compute the
    value.  Instead just return the location of the value.  */

extern void frame_register_unwind (struct frame_info *frame, int regnum,
                                    int *optimizedp, enum lval_type *lvalp,
                                    CORE_ADDR *addrp, int *realnump,
                                    void *valuep);

as this will work with CFI and generic dummy frames.


  parent reply	other threads:[~2002-06-18 23:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-14 12:12 Joel Brobecker
2002-06-14 12:22 ` Joel Brobecker
2002-06-18 16:52 ` Andrew Cagney [this message]
2002-06-18 18:20   ` Joel Brobecker

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=3D0FC7A0.10601@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=brobecker@gnat.com \
    --cc=gdb-patches@sources.redhat.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