diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2025-03-15 18:13:42 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2025-03-17 16:14:08 -0400 |
commit | aca980917b4eb85bf099398db69a34e7d5668c28 (patch) | |
tree | f068401f66408239fc502fc6dc9510f8459c508d /gdb | |
parent | 6fca4d9694bf6d10d1cc41aed8552fe90085eb09 (diff) | |
download | binutils-aca980917b4eb85bf099398db69a34e7d5668c28.zip binutils-aca980917b4eb85bf099398db69a34e7d5668c28.tar.gz binutils-aca980917b4eb85bf099398db69a34e7d5668c28.tar.bz2 |
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 <tom@tromey.com>
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))); } |