Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Joel Brobecker <brobecker@gnat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA/RFC] fix problems with unwinder on mips-irix
Date: Wed, 01 Sep 2004 14:57:00 -0000	[thread overview]
Message-ID: <4135E307.8010409@gnu.org> (raw)
In-Reply-To: <41338063.7020500@gnu.org>

[something ate some e-mail during a local mailer upgrade, I'm replying 
using what I saw on the web]

> Reading your last commit to this file, I discovered that you added frame
> sniffers, so, if I understand correctly, we can now more or less predict
> the circumstances under which find_proc_desc should be called (heuristic
> vs non-heuristic). Is that right?

Right, but it is stronger than more-or-less :-)  mips_insn32_frame_cache 
need only worry about 32-bit sized instructions and a heuristic prologue 
analysis.

As for inlineing, remember the focus is solely on 
mips_insn32_frame_cache as that's the one with the immediate bug:

>   3. mips_insn32_frame_cache
> 
>      In these two cases, the call to find_proc_desc can be reduced to
>      the case where the heuristics have to be used. You said it can be
>      inline using something like this:
> 
>       if (startaddr == 0)
>         startaddr = heuristic_proc_start (pc);
> 
>       proc_desc = heuristic_proc_desc (startaddr, pc, next_frame, cur_frame);
> 
>      I see that linked_proc_desc_table is never used, which explains
>      why we can get rid of:
> 
>       /* Is linked_proc_desc_table really necessary?  It only seems to be used
>          by procedure call dummys.  However, the procedures being called ought
>          to have their own proc_descs, and even if they don't,
>          heuristic_proc_desc knows how to create them! */
> 
>       struct linked_proc_info *link;
> 
>       for (link = linked_proc_desc_table; link; link = link->next)
>         if (PROC_LOW_ADDR (&link->info) <= pc
>             && PROC_HIGH_ADDR (&link->info) > pc)
>           return &link->info;

as for the other potential inlines, I'd let them be.  The'll follow in 
their own good time.

Andrew


  parent reply	other threads:[~2004-09-01 14:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23  1:11 Joel Brobecker
2004-07-30  0:22 ` Andrew Cagney
2004-08-03  4:44   ` Joel Brobecker
2004-08-04  1:43     ` Andrew Cagney
2004-08-06 18:31       ` Joel Brobecker
2004-08-06 19:13         ` Andrew Cagney
2004-08-30 18:18       ` Joel Brobecker
2004-08-30 19:32         ` Andrew Cagney
2004-08-31 23:44           ` Joel Brobecker
2004-09-01 14:57           ` Andrew Cagney [this message]
2004-09-02 23:09           ` Joel Brobecker
2004-09-03 20:17             ` Andrew Cagney

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=4135E307.8010409@gnu.org \
    --to=cagney@gnu.org \
    --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