[23/29] Only look for functions in expand_symtabs_for_function

Message ID 20231120-submit-domain-hacks-2-v1-23-29650d01b198@tromey.com
State New
Headers
Series Restructure symbol domains |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed

Commit Message

Tom Tromey Nov. 21, 2023, 3:53 a.m. UTC
  This changes expand_symtabs_for_function to only look in the function
domain.
---
 gdb/symfile-debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index e7cf25effa9..a21735e9868 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -346,7 +346,7 @@  objfile::expand_symtabs_for_function (const char *func_name)
 				   nullptr,
 				   (SEARCH_GLOBAL_BLOCK
 				    | SEARCH_STATIC_BLOCK),
-				   SEARCH_VFT);
+				   SEARCH_FUNCTION_DOMAIN);
 }
 
 void