From: Simon Marchi Date: Sat, 15 Mar 2025 22:13:42 +0000 (-0400) Subject: gdb/dwarf: remove unused cooked_index::cooked_index parameter X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aca980917b4eb85bf099398db69a34e7d5668c28;p=thirdparty%2Fbinutils-gdb.git gdb/dwarf: remove unused cooked_index::cooked_index parameter Following the previous patch, this parameter is now unused. Remove it. Change-Id: I7e96a3ba61ad9a0d6b64f9129aeeb9a8f3da22a7 Approved-By: Tom Tromey --- diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c index 9626b2c16c0..724615f497e 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 be67a83150d..56c84bdc93d 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; 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 6e9ea667c3a..8c265dd6b03 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 (per_objfile, std::move (map))); - auto idx = std::make_unique (per_objfile, - std::move (cidn)); + auto idx = std::make_unique (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 fd178e90a86..ed7558933df 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 (per_objfile); - per_bfd->start_reading (std::make_unique (per_objfile, - std::move (worker))); + per_bfd->start_reading (std::make_unique (std::move (worker))); }