diff options
author | Tom Tromey <tom@tromey.com> | 2023-11-12 09:23:49 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-08 18:40:21 -0700 |
commit | 3c2f688e70997bcdc856578adbed492a0b581fa9 (patch) | |
tree | 8708968d390bbafc5e1be8aa595f73aaad673852 /gdb/dwarf2/read-debug-names.c | |
parent | 7531822f109138039881f0427ccdfd760ec19e07 (diff) | |
download | binutils-3c2f688e70997bcdc856578adbed492a0b581fa9.zip binutils-3c2f688e70997bcdc856578adbed492a0b581fa9.tar.gz binutils-3c2f688e70997bcdc856578adbed492a0b581fa9.tar.bz2 |
Don't use objfile::intern in DWO code
The DWO code in the DWARF reader currently uses objfile::intern. This
accesses a shared data structure and so would be racy when used from
multiple threads. I don't believe this can happen right now, but
background reading could provoke this, and in any case it's better to
avoid this, just to be sure.
This patch changes this code to just use a std::string. A new type is
introduced to do hash table lookups, to avoid unnecessary copies.
Diffstat (limited to 'gdb/dwarf2/read-debug-names.c')
0 files changed, 0 insertions, 0 deletions