]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Only look for functions in expand_symtabs_for_function
authorTom Tromey <tom@tromey.com>
Sat, 2 Sep 2023 15:42:44 +0000 (09:42 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jan 2024 17:58:17 +0000 (10:58 -0700)
This changes expand_symtabs_for_function to only look in the function
domain.

gdb/symfile-debug.c

index 30b02531b9c58e98c695e9bc7203aaf784f5fc55..96cdfeeb7ed23c6ac1b5d78714e62452f960f7d2 100644 (file)
@@ -342,7 +342,7 @@ objfile::expand_symtabs_for_function (const char *func_name)
                                   nullptr,
                                   (SEARCH_GLOBAL_BLOCK
                                    | SEARCH_STATIC_BLOCK),
-                                  SEARCH_VFT);
+                                  SEARCH_FUNCTION_DOMAIN);
 }
 
 void