Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org,  jzhang918@gmail.com
Subject: Re: slow script execution when debugging large binaries
Date: Thu, 10 Aug 2006 22:21:00 -0000	[thread overview]
Message-ID: <200608101821.22692.vapier@gentoo.org> (raw)
In-Reply-To: <20060810220541.GA3074@nevyn.them.org>

[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]

On Thursday 10 August 2006 18:05, Daniel Jacobowitz wrote:
> On Thu, Aug 10, 2006 at 06:04:20PM -0400, Mike Frysinger wrote:
> > > But at a guess, you'll still have a symbol lookup on top of the
> > > profile.
> >
> > yeah, new one attached looks as you thought
>
> Well there you go then.  How are we getting into symbol lookups while
> handling internal variables?  A breakpoint on lookup_partial_symbol
> will probably tell you.

first time ive used gprof/looked at gdb source code so i could easily be off, 
but the call graph i posted gives the clues we need ?

looking at the gprof call graph, lookup_symbol() is only called by 
write_dollar_variable() ... looking at parse.c, write_dollar_variable() does 
a symbol lookup on purpose because of funky systems (like hppa) that allow 
system routines to begin with $ or $$

if i cheat and comment out lookup_symbol() here and force sym to be NULL, the 
speed test runs instantaneously even after loading up the kernel

perhaps a build time check to allow this behavior ?  force hppa targets to 
take the hit and not screw everyone else ? :)
-mike

[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]

      reply	other threads:[~2006-08-10 22:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 20:32 Mike Frysinger
2006-08-10 20:40 ` Daniel Jacobowitz
2006-08-10 21:48   ` Mike Frysinger
2006-08-10 21:55     ` Daniel Jacobowitz
2006-08-10 22:04       ` Mike Frysinger
2006-08-10 22:05         ` Daniel Jacobowitz
2006-08-10 22:21           ` Mike Frysinger [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=200608101821.22692.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=jzhang918@gmail.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