[PATCH] gdb: cooked_index_functions::expand_symtabs_matching: require psymtab
Tom Tromey
tom@tromey.com
Wed May 18 20:09:49 GMT 2022
>>>>> Lancelot SIX via Gdb-patches <gdb-patches@sourceware.org> writes:
> diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
> index 37e9587e43e..489b857459b 100644
> --- a/gdb/dwarf2/read.c
> +++ b/gdb/dwarf2/read.c
> @@ -18559,6 +18559,9 @@ cooked_index_functions::expand_symtabs_matching
> domain_enum domain,
> enum search_domain kind)
> {
> + /* Make sure that the psymtab have been read for objfile. */
> + objfile->require_partial_symbols (false);
Why 'false' here, when psymtab.c uses 'true'?
Also, can this bug affect the other methods in cooked_index_functions?
thanks,
Tom
More information about the Gdb-patches
mailing list