Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA/commit/dwarf] Create partial symbols for nested 	subprograms
Date: Fri, 12 Sep 2008 18:08:00 -0000	[thread overview]
Message-ID: <m31vzpxmqm.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20080912174240.GF3714@adacore.com> (Joel Brobecker's message of "Fri\, 12 Sep 2008 10\:42\:40 -0700")

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> but the one thing that I am wondering is how users will respond
Joel> to an unexpectedly long delay when entering a command that is
Joel> usually fast and yet takes a noticeably long time that one
Joel> time. For intance, imagine the following scenario:

Joel>   % gdb my_300MB_exe
Joel>   (gdb) break main
Joel>   [12 secs later...]
Joel>   Breakpoint 1, ...

Yeah, I wonder that too.

One thing to note is that, on average, we should expect the delay here
to be half of the startup delay that users experience today.  My
reasoning is that, on average, we should only have to load half the
psymtabs before finding a symbol.  (Of course, the worst case does
happen regularly, so this is not entirely satisfactory.)

I will do some more tests and fixing of this patch sometime soon.  If
this is a big problem perhaps I'll reopen the pubnames investigation.
Or maybe we can use the minimal symbols as a guide somehow, in some
common cases (or maybe we do already, I did not look at this in
depth).  (FWIW I'm also curious about lazily reading minimal symbols.)

Tom


  reply	other threads:[~2008-09-12 18:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-10 20:20 Joel Brobecker
2008-09-10 20:35 ` Daniel Jacobowitz
2008-09-10 21:38   ` Tom Tromey
2008-09-11  5:01     ` Joel Brobecker
2008-09-11 22:15       ` Tom Tromey
2008-09-11 22:28         ` Daniel Jacobowitz
2008-09-11 22:33           ` Tom Tromey
2008-09-12  4:19           ` Joel Brobecker
2008-09-11 17:55   ` Joel Brobecker
2008-09-11 18:38     ` Daniel Jacobowitz
2008-09-11 21:53       ` Joel Brobecker
2008-09-13 15:14         ` Daniel Jacobowitz
2008-09-13 22:21           ` Joel Brobecker
2008-09-11 22:44       ` Tom Tromey
2008-09-12  4:18         ` Joel Brobecker
2008-09-12 16:51           ` Tom Tromey
2008-09-12 16:56             ` Joel Brobecker
2008-09-12 17:19               ` Tom Tromey
2008-09-12 17:43                 ` Joel Brobecker
2008-09-12 18:08                   ` Tom Tromey [this message]
2008-09-12 18:43                   ` Frank Ch. Eigler
2008-09-12 20:31                     ` Tom Tromey

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=m31vzpxmqm.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /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