diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2022-04-11 15:12:33 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2022-10-18 14:16:09 +0200 |
commit | fb4f3f38e98599690946cc24b09ae6883a36edb0 (patch) | |
tree | 2b74a5eb1369bcb534e05315a0324e845ea291ed /gdb/python/python.h | |
parent | 2733d9d5d62c62023dc2d7a93fa5afa22f386ffd (diff) | |
download | binutils-fb4f3f38e98599690946cc24b09ae6883a36edb0.zip binutils-fb4f3f38e98599690946cc24b09ae6883a36edb0.tar.gz binutils-fb4f3f38e98599690946cc24b09ae6883a36edb0.tar.bz2 |
gdb, compile: unlink objfile stored in module
When cleaning up after a compile command, we iterate over all objfiles and
unlink the first objfile with the same name as the one we compiled.
Since we already store a pointer to that objfile in the module and use it
to get the name we're comparing against, there's no reason to iterate, at
all. We can simply use that objfile.
This further avoids potential issues when an objfile with the same name is
loaded into a different linker namespace.
Diffstat (limited to 'gdb/python/python.h')
0 files changed, 0 insertions, 0 deletions