Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jason Molenda <jmolenda@apple.com>
To: Joel Brobecker <brobecker@gnat.com>
Cc: Andrew Cagney <cagney@gnu.org>, gdb-patches@sources.redhat.com
Subject: Re: Question about blockframe.c:inside_main_func()
Date: Thu, 29 Apr 2004 01:50:00 -0000	[thread overview]
Message-ID: <8B069116-997F-11D8-9EA7-000A9569836A@apple.com> (raw)
In-Reply-To: <20040429010205.GS867@gnat.com>


On Apr 28, 2004, at 6:02 PM, Joel Brobecker wrote:

> Indeed, it seems that we could improve a bit this code: It really looks
> like we are trying to compute the low/high addresses for function main
> twice! Even when main is found within the debug info, we go through the
> through the trouble of finding the bounds of function "main" from the
> min syms anyway. A missing condition somewhere?

Yeah, if I'm not mistaken we'll look up main() twice for each frame in 
a backtrace every time.  With a GUI front end keeping a stack view 
up-to-date on each step, and apps with deep stacks, that will add up 
pretty fast.  Here at Apple we found some real performance problems 
with this type of code path - things that slowed down with deep stacks 
and frequent 'backtraces' from the UI - so it's work fixing.

Looking at the individual changes to inside_main_func, I'm pretty well 
convinced this is just a combination of edits that didn't look at the 
function's behavior overall.  But it's worth checking with Andrew to 
see if there is some edge-case that isn't immediately obvious which 
would cause us to do this recomputation all the time..

J


  reply	other threads:[~2004-04-29  1:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-29  0:17 Jason Molenda
2004-04-29  1:02 ` Joel Brobecker
2004-04-29  1:50   ` Jason Molenda [this message]
2004-04-29 15:09 ` Andrew Cagney
2004-04-30  0:27   ` Jason Molenda
2004-04-30  0:49     ` 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=8B069116-997F-11D8-9EA7-000A9569836A@apple.com \
    --to=jmolenda@apple.com \
    --cc=brobecker@gnat.com \
    --cc=cagney@gnu.org \
    --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