From: "Hannes Domani via gdb" <gdb@sourceware.org>
To: GDB Development <gdb@sourceware.org>
Subject: Re: question about expand_symtabs_matching()
Date: Thu, 28 Feb 2019 11:32:00 -0000 [thread overview]
Message-ID: <1428427467.10799860.1551353565332@mail.yahoo.com> (raw)
In-Reply-To: <87h8copz0d.fsf@tromey.com>
Am Donnerstag, 28. Februar 2019, 00:55:50 MEZ hat Tom Tromey <tom@tromey.com> Folgendes geschrieben:
> >>>>> "Hannes" == Hannes Domani via gdb <gdb@sourceware.org> writes:
>
> Hannes> And in case a shared library is unloaded, I would have thought
> Hannes> that you could just removeall breakpoints in the address range
> Hannes> of the shared library.
>
> Yes.
>
> At one point we had discussed this, but I guess it never really
> happened. So, something to do :-)
>
> Hannes> What if I have a simple breakpoint like 'break some-file.c:123', is there even any
> Hannes> symbol that can be expanded with expand_symtabs_matching()?
>
> Nope, but then again it isn't called in this scenario; at least not if
> "some-file.c" exists.
I should have clarified that I'm currently investigating why
*pending* breakpoints slow down gdb so much.
The last 3 days I've been staring a lot at profiling flamegraphs
of gdb for the breakpoint types (again, pending only) I use
most ('b some-file.c:123' & 'b function'), and expand_symtabs_matching()
is one of the biggest time-consumers.
Similar, for the case of a simple function name as pending breakpoint,
it's cp_canonicalize_string_no_typedefs() called by find_linespec_symbols(),
that's taking most of the time.
And I'm wondering if this call is necessary if you only use the function name
without arguments (like 'function' or Class::member_function).
If you are interested, I could also send you the profiling flamegraphs.
Regards
Hannes Domani
next prev parent reply other threads:[~2019-02-28 11:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <183519794.10360727.1551304006549.ref@mail.yahoo.com>
[not found] ` <183519794.10360727.1551304006549@mail.yahoo.com>
2019-02-27 23:55 ` Tom Tromey
2019-02-28 11:32 ` Hannes Domani via gdb [this message]
2019-03-01 18:30 ` Tom Tromey
2019-03-01 18:51 ` Hannes Domani via gdb
2019-03-08 21:13 ` Tom Tromey
[not found] ` <605876742.3053854.1552089304851@mail.yahoo.com>
2019-03-09 0:18 ` Fw: " Hannes Domani via gdb
[not found] <948301287.10289911.1551297622910.ref@mail.yahoo.com>
2019-02-27 20:02 ` Hannes Domani via gdb
2019-02-27 21:26 ` 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=1428427467.10799860.1551353565332@mail.yahoo.com \
--to=gdb@sourceware.org \
--cc=ssbssa@yahoo.de \
/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