public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Do not put linkage names into .gdb_index
@ 2022-04-22 17:48 Tom Tromey
  2022-04-22 18:02 ` Pedro Alves
  2022-04-25  9:42 ` George, Jini Susan
  0 siblings, 2 replies; 9+ messages in thread
From: Tom Tromey @ 2022-04-22 17:48 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

This changes the .gdb_index writer to skip linkage names.  This was
always done historically (though somewhat implicitly).
---
 gdb/dwarf2/index-write.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c
index b7a2e214f6b..b7bc1be3fee 100644
--- a/gdb/dwarf2/index-write.c
+++ b/gdb/dwarf2/index-write.c
@@ -1093,6 +1093,10 @@ write_cooked_index (cooked_index_vector *table,
 {
   for (const cooked_index_entry *entry : table->all_entries ())
     {
+      /* GDB never put linkage names into .gdb_index.  */
+      if ((entry->flags & IS_LINKAGE) != 0)
+	continue;
+
       const auto it = cu_index_htab.find (entry->per_cu);
       gdb_assert (it != cu_index_htab.cend ());
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-26  8:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22 17:48 [PATCH] Do not put linkage names into .gdb_index Tom Tromey
2022-04-22 18:02 ` Pedro Alves
2022-04-22 19:53   ` Tom Tromey
2022-04-22 19:55     ` Pedro Alves
2022-04-24 16:16     ` Joel Brobecker
2022-04-25 13:06       ` Tom Tromey
2022-04-25  9:42 ` George, Jini Susan
2022-04-25 13:07   ` Tom Tromey
2022-04-26  8:06     ` George, Jini Susan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).