diff options
author | Dmitry.Neverov <dmitry.neverov@jetbrains.com> | 2024-05-06 17:09:17 +0200 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-05-17 08:02:29 -0600 |
commit | 3a0fae312983989a33608d924ff902d7b78e8ec1 (patch) | |
tree | ff58b3e1fcdba215e5b939a83aaa825843cc7d97 /gdb/python/py-dap.c | |
parent | 9ea82bfdd612081e21b38ea89d9bb0f836d92814 (diff) | |
download | binutils-3a0fae312983989a33608d924ff902d7b78e8ec1.zip binutils-3a0fae312983989a33608d924ff902d7b78e8ec1.tar.gz binutils-3a0fae312983989a33608d924ff902d7b78e8ec1.tar.bz2 |
gdb/symtab: check name matches before expanding a CU
The added check fixes the case when an unqualified lookup
name without template arguments causes expansion of many CUs
which contain the name with template arguments.
This is similar to what dw2_expand_symtabs_matching_symbol does
before expanding the CU.
In the referenced issue the lookup name was wxObjectDataPtr and many
CUs had names like wxObjectDataPtr<wxBitmapBundleImpl>. This caused
their expansion and the lookup took around a minute. The added check
helps to avoid the expansion and makes the symbol lookup to return in
a second or so.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30520
Diffstat (limited to 'gdb/python/py-dap.c')
0 files changed, 0 insertions, 0 deletions