diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/dwarf2/cooked-index.c | 3 | ||||
-rw-r--r-- | gdb/dwarf2/cooked-index.h | 3 | ||||
-rw-r--r-- | gdb/dwarf2/read-debug-names.c | 3 | ||||
-rw-r--r-- | gdb/dwarf2/read.c | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c index 9626b2c..724615f 100644 --- a/gdb/dwarf2/cooked-index.c +++ b/gdb/dwarf2/cooked-index.c @@ -712,8 +712,7 @@ cooked_index_worker::write_to_cache (const cooked_index *idx, } } -cooked_index::cooked_index (dwarf2_per_objfile *per_objfile, - cooked_index_worker_up &&worker) +cooked_index::cooked_index (cooked_index_worker_up &&worker) : m_state (std::move (worker)) { /* ACTIVE_VECTORS is not locked, and this assert ensures that this diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h index be67a83..56c84bd 100644 --- a/gdb/dwarf2/cooked-index.h +++ b/gdb/dwarf2/cooked-index.h @@ -561,8 +561,7 @@ using cooked_index_worker_up = std::unique_ptr<cooked_index_worker>; class cooked_index : public dwarf_scanner_base { public: - cooked_index (dwarf2_per_objfile *per_objfile, - cooked_index_worker_up &&worker); + cooked_index (cooked_index_worker_up &&worker); ~cooked_index () override; DISABLE_COPY_AND_ASSIGN (cooked_index); diff --git a/gdb/dwarf2/read-debug-names.c b/gdb/dwarf2/read-debug-names.c index 6e9ea66..8c265dd 100644 --- a/gdb/dwarf2/read-debug-names.c +++ b/gdb/dwarf2/read-debug-names.c @@ -860,8 +860,7 @@ do_dwarf2_read_debug_names (dwarf2_per_objfile *per_objfile) auto cidn = (std::make_unique<cooked_index_worker_debug_names> (per_objfile, std::move (map))); - auto idx = std::make_unique<debug_names_index> (per_objfile, - std::move (cidn)); + auto idx = std::make_unique<debug_names_index> (std::move (cidn)); per_bfd->start_reading (std::move (idx)); return true; diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index fd178e9..ed75589 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -14914,8 +14914,7 @@ start_debug_info_reader (dwarf2_per_objfile *per_objfile) scanning; and then start the scanning. */ dwarf2_per_bfd *per_bfd = per_objfile->per_bfd; auto worker = std::make_unique<cooked_index_worker_debug_info> (per_objfile); - per_bfd->start_reading (std::make_unique<cooked_index> (per_objfile, - std::move (worker))); + per_bfd->start_reading (std::make_unique<cooked_index> (std::move (worker))); } |