[v2,24/30] Only look for functions in expand_symtabs_for_function

Message ID 20240118-submit-domain-hacks-2-v2-24-aecab29fa104@tromey.com
State New
Headers
Series Restructure symbol domains |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom Tromey Jan. 18, 2024, 8:32 p.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 30b02531b9c..96cdfeeb7ed 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -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