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

> > 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.

Thanks. This is now in (I also corrected the little typo you found
in one of the comments).

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

Yes it did, silly me :-).

Just for the record, here is the output before my patch:
<<
(gdb) b __hstTransferRegistersPC
Breakpoint 2 at 0x3ff8057d43c
(gdb) c
Continuing.

Breakpoint 2, 0x000003ff8057d43c in __hstTransferRegistersPC ()
   from /usr/shlib/libpthread.so
(gdb) bt
#0  0x000003ff8057d43c in __hstTransferRegistersPC ()
   from /usr/shlib/libpthread.so
#1  0x000003ff8056e8e4 in __osTransferContext () from /usr/shlib/libpthread.so
warning: Hit beginning of text section without finding
warning: enclosing function for address 0x13
>>

> 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.

Ack, I'll try to do this when I have a spare moment...

Thanks for the quick review.
-- 
Joel


      reply	other threads:[~2002-06-19  1:20 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
2002-06-18 18:20   ` Joel Brobecker [this message]

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=20020618182019.O2828@gnat.com \
    --to=brobecker@gnat.com \
    --cc=ac131313@cygnus.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