From: Tom Tromey Date: Wed, 26 Mar 2025 00:51:51 +0000 (-0600) Subject: Update comments from moved methods X-Git-Tag: binutils-2_45~999 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23ad2598a6b92643417b7a94da54aebb62469423;p=thirdparty%2Fbinutils-gdb.git Update comments from moved methods This updates the "See xyz.h" comments for all the methods that were moved earlier in this series. Perhaps I should have removed them instead. Approved-By: Simon Marchi --- diff --git a/gdb/dwarf2/cooked-index-entry.c b/gdb/dwarf2/cooked-index-entry.c index 197f62aee51..3e322f140e5 100644 --- a/gdb/dwarf2/cooked-index-entry.c +++ b/gdb/dwarf2/cooked-index-entry.c @@ -22,7 +22,7 @@ #include "gdbsupport/gdb-safe-ctype.h" #include "gdbsupport/selftest.h" -/* See cooked-index.h. */ +/* See cooked-index-entry.h. */ std::string to_string (cooked_index_flag flags) @@ -38,7 +38,7 @@ to_string (cooked_index_flag flags) return flags.to_string (mapping); } -/* See cooked-index.h. */ +/* See cooked-index-entry.h. */ int cooked_index_entry::compare (const char *stra, const char *strb, @@ -154,7 +154,7 @@ test_compare () #endif /* GDB_SELF_TEST */ -/* See cooked-index.h. */ +/* See cooked-index-entry.h. */ bool cooked_index_entry::matches (domain_search_flags kind) const @@ -166,7 +166,7 @@ cooked_index_entry::matches (domain_search_flags kind) const return tag_matches_domain (tag, kind, lang); } -/* See cooked-index.h. */ +/* See cooked-index-entry.h. */ const char * cooked_index_entry::full_name (struct obstack *storage, @@ -215,7 +215,7 @@ cooked_index_entry::full_name (struct obstack *storage, return (const char *) obstack_finish (storage); } -/* See cooked-index.h. */ +/* See cooked-index-entry.h. */ void cooked_index_entry::write_scope (struct obstack *storage, diff --git a/gdb/dwarf2/cooked-index-shard.c b/gdb/dwarf2/cooked-index-shard.c index 41844cdc659..683feb2ce96 100644 --- a/gdb/dwarf2/cooked-index-shard.c +++ b/gdb/dwarf2/cooked-index-shard.c @@ -41,7 +41,7 @@ language_may_use_plain_main (enum language lang) || lang == language_minimal); } -/* See cooked-index.h. */ +/* See cooked-index-shard.h. */ cooked_index_entry * cooked_index_shard::create (sect_offset die_offset, @@ -70,7 +70,7 @@ cooked_index_shard::create (sect_offset die_offset, per_cu); } -/* See cooked-index.h. */ +/* See cooked-index-shard.h. */ cooked_index_entry * cooked_index_shard::add (sect_offset die_offset, enum dwarf_tag tag, @@ -96,7 +96,7 @@ cooked_index_shard::add (sect_offset die_offset, enum dwarf_tag tag, return result; } -/* See cooked-index.h. */ +/* See cooked-index-shard.h. */ void cooked_index_shard::handle_gnat_encoded_entry @@ -173,7 +173,7 @@ struct cooked_index_entry_name_ptr_eq } }; -/* See cooked-index.h. */ +/* See cooked-index-shard.h. */ void cooked_index_shard::finalize (const parent_map_map *parent_maps) @@ -301,7 +301,7 @@ cooked_index_shard::finalize (const parent_map_map *parent_maps) }); } -/* See cooked-index.h. */ +/* See cooked-index-shard.h. */ cooked_index_shard::range cooked_index_shard::find (const std::string &name, bool completing) const diff --git a/gdb/dwarf2/cooked-index-worker.c b/gdb/dwarf2/cooked-index-worker.c index 0ce4987658f..8073a672cb9 100644 --- a/gdb/dwarf2/cooked-index-worker.c +++ b/gdb/dwarf2/cooked-index-worker.c @@ -88,7 +88,7 @@ bool cooked_index_worker_result::cutu_reader_eq::operator() return per_cu.index == reader->cu ()->per_cu->index; } -/* See cooked-index.h. */ +/* See cooked-index-worker.h. */ void cooked_index_worker::start () @@ -109,7 +109,7 @@ cooked_index_worker::start () }); } -/* See cooked-index.h. */ +/* See cooked-index-worker.h. */ bool cooked_index_worker::wait (cooked_state desired_state, bool allow_quit) @@ -194,7 +194,7 @@ cooked_index_worker::wait (cooked_state desired_state, bool allow_quit) return done; } -/* See cooked-index.h. */ +/* See cooked-index-worker.h. */ void cooked_index_worker::set (cooked_state desired_state) @@ -212,7 +212,7 @@ cooked_index_worker::set (cooked_state desired_state) #endif /* CXX_STD_THREAD */ } -/* See cooked-index.h. */ +/* See cooked-index-worker.h. */ void cooked_index_worker::write_to_cache (const cooked_index *idx,