From: Tom Tromey <tromey@redhat.com>
To: Paul Pluzhnikov <ppluzhnikov@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Eliminate quadratic slow-down on number of solibs (part 2).
Date: Wed, 03 Jun 2009 21:36:00 -0000 [thread overview]
Message-ID: <m33aahq9wu.fsf@fleche.redhat.com> (raw)
In-Reply-To: <8ac60eac0906031245v4db0ae38ubeee91d49611851f@mail.gmail.com> (Paul Pluzhnikov's message of "Wed\, 3 Jun 2009 12\:45\:42 -0700")
>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:
Paul> The problem is that the call chain is deep:
Yeah, but it can be simplified.
Paul> #3 0x00000000004e3ee5 in symbol_file_add_from_bfd (abfd=0xd57fe0,
Paul> from_tty=0, addrs=0x0, mainline=0, flags=<value optimized out>)
Paul> at ../../src/gdb/symfile.c:1103
Paul> #4 0x00000000004e3812 in symbol_file_add_with_addrs_or_offsets (
Paul> abfd=<value optimized out>, from_tty=0, addrs=0xa62410,
Paul> offsets=0x0, num_offsets=0, mainline=0,
Paul> flags=<value optimized out>) at ../../src/gdb/symfile.c:1033
Paul> #5 0x00000000004e3ee5 in symbol_file_add_from_bfd (abfd=0xd57fe0,
Paul> from_tty=0, addrs=0x0, mainline=0, flags=<value optimized out>)
Paul> at ../../src/gdb/symfile.c:1103
These are all just forwarding calls, basically overloads.
You could add a new overload just for this purpose.
Paul> #6 0x0000000000462070 in symbol_add_stub (arg=<value optimized out>)
Paul> at ../../src/gdb/solib.c:470
Paul> #7 0x00000000004fdf8b in catch_errors (
Paul> func=0x461ff0 <symbol_add_stub>, func_args=0xae7a10,
Paul> errstring=0x658e68 "Error while reading shared library
Paul> symbols:\n", mask=<value optimized out>) at
Paul> ../../src/gdb/exceptions.c:510
These could be turned into a TRY_CATCH inside solib_read_symbols.
symbol_add_stub is only called from a single place.
Tom
next prev parent reply other threads:[~2009-06-03 21:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-06 0:50 Paul Pluzhnikov
2009-05-12 8:25 ` Joel Brobecker
2009-05-12 20:53 ` Paul Pluzhnikov
2009-05-13 9:27 ` Joel Brobecker
2009-05-13 18:11 ` Paul Pluzhnikov
2009-05-14 8:14 ` Joel Brobecker
2009-05-14 17:45 ` Paul Pluzhnikov
2009-05-14 19:23 ` Joel Brobecker
2009-05-14 23:35 ` Paul Pluzhnikov
[not found] ` <20090521151540.GH16152@adacore.com>
2009-05-21 16:17 ` Paul Pluzhnikov
2009-05-21 16:40 ` Joel Brobecker
2009-05-30 2:08 ` Tom Tromey
2009-05-30 1:59 ` Tom Tromey
2009-06-03 19:46 ` Paul Pluzhnikov
2009-06-03 21:36 ` Tom Tromey [this message]
2009-05-12 19:43 Paul Pluzhnikov
2009-05-13 9:25 ` Joel Brobecker
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=m33aahq9wu.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=ppluzhnikov@google.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