diff options
author | Tom Tromey <tom@tromey.com> | 2023-09-02 09:32:49 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-28 10:58:17 -0700 |
commit | b63eb1f39d0d0c93bebe2d6756196002ad440298 (patch) | |
tree | 022d524396a622df8d27d864397f74a60af15f05 /gdb/symtab.c | |
parent | b5c7440b44fe5e6c53603506b8465c1d35758678 (diff) | |
download | gdb-b63eb1f39d0d0c93bebe2d6756196002ad440298.zip gdb-b63eb1f39d0d0c93bebe2d6756196002ad440298.tar.gz gdb-b63eb1f39d0d0c93bebe2d6756196002ad440298.tar.bz2 |
Only search for "main" as a function
This changes find_main_name to restrict its search to the function
domain.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 30b12d6..517e843 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -6435,7 +6435,8 @@ find_main_name (void) [&symbol_found_p, pspace] (objfile *obj) { language lang - = obj->lookup_global_symbol_language ("main", SEARCH_VFT, + = obj->lookup_global_symbol_language ("main", + SEARCH_FUNCTION_DOMAIN, &symbol_found_p); if (symbol_found_p) { |