aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2022-05-02 16:33:32 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2022-10-18 14:16:10 +0200
commit531bd03892bbf95f346819006b365c0b0ccb6d06 (patch)
tree6b222b747744d5090d6bbe3c81aeee4cb7a1013d /gdb/elfread.c
parent6f96c196beccb6f30b78ef878b3eaa420dfaa687 (diff)
downloadgdb-531bd03892bbf95f346819006b365c0b0ccb6d06.zip
gdb-531bd03892bbf95f346819006b365c0b0ccb6d06.tar.gz
gdb-531bd03892bbf95f346819006b365c0b0ccb6d06.tar.bz2
gdb, symtab: inline find_quick_global_symbol_language
There is only one use of find_quick_global_symbol_language that calls it for the special symbol "main". Inline the function as it is probably not correct in the general case where we may have multiple instances of global symbols with the same name but different languages in different libraries in different linker namespaces. Further, change the objfiles iteration into a call to gdbarch_iterate_over_objfiles_in_search_order, which would only search the initial linker namespace, where we expect "main" to be located.
Diffstat (limited to 'gdb/elfread.c')
0 files changed, 0 insertions, 0 deletions