Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Hannes Domani via gdb" <gdb@sourceware.org>
To: GDB Development <gdb@sourceware.org>
Subject: question about expand_symtabs_matching()
Date: Wed, 27 Feb 2019 20:02:00 -0000	[thread overview]
Message-ID: <948301287.10289911.1551297622910@mail.yahoo.com> (raw)
In-Reply-To: <948301287.10289911.1551297622910.ref@mail.yahoo.com>

Hello


This is probably a stupid question.

In gdb/linespec.c:1146 is this call:

      if (objfile->sf)
        objfile->sf->qf->expand_symtabs_matching (objfile,
                                                  NULL,
                                                  lookup_name,
                                                  NULL, NULL,
                                                  search_domain);

What exactly is this call doing, since none of the 3 callback functions is used?

This is slowing gdb down quite a lot if you have pending breakpoints, and are 
loading/unloading many shared libraries.

When I removed it, I couldn't see any different behavior (other than being faster).

I'm on Windows, specifically x86_64-w64-mingw32.


Regards
Hannes Domani


       reply	other threads:[~2019-02-27 20:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <948301287.10289911.1551297622910.ref@mail.yahoo.com>
2019-02-27 20:02 ` Hannes Domani via gdb [this message]
2019-02-27 21:26   ` Tom Tromey
     [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
2019-03-01 18:30       ` Tom Tromey
2019-03-01 18:51         ` Hannes Domani via gdb
2019-03-08 21:13           ` 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=948301287.10289911.1551297622910@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