]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Skip separate debug files when handling copy relocations
authorTom Tromey <tromey@adacore.com>
Fri, 10 Apr 2020 13:18:49 +0000 (07:18 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 10 Apr 2020 13:21:16 +0000 (07:21 -0600)
commit3e65b3e9aff265b8db711f742ea527b4c2e36910
treea14ef76e2d9666c0ef18131cb99dc865158d4f52
parent13302e956fb7a0c700f53f16d985c9e6207e331c
Skip separate debug files when handling copy relocations

get_symbol_address and get_msymbol_address call
lookup_minimal_symbol_linkage, which iterates over the separate debug
files of the objfile that is passed in.

This means that if these functions pass in a separate debug objfile,
then they are doing unnecessary work.

This patch avoids the extra work by skipping separate debug objfiles
in the loops.

gdb/ChangeLog
2020-04-10  Tom Tromey  <tromey@adacore.com>

* symtab.c (get_symbol_address, get_msymbol_address): Skip
separate debug files.
gdb/ChangeLog
gdb/symtab.c