public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] [gdb/symtab] Eliminate deferred_entry
@ 2024-01-09 17:04 Tom de Vries
  2024-01-09 17:04 ` [PATCH v2 1/3] gdb/symtab: Allow changing of added cooked_index entries Tom de Vries
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Tom de Vries @ 2024-01-09 17:04 UTC (permalink / raw)
  To: gdb-patches

In a discussion of a proposed fix for PR symtab/30728 (
https://sourceware.org/pipermail/gdb-patches/2023-December/205068.html ), this
was mentioned:
...
I wonder then about just sticking this info directly into the
cooked_index_entry object, and then doing fixups directly on these in
the shard.

That is, instead of keeping separate "deferred" entries, just making
ordinary entries.  cooked_index_entry::parent_entry could be a union
holding either the parent (if known) or a CORE_ADDR; and then there
could be a new flag in cooked_index_flag_enum indicating which one is in
use.
...

This patch series implements that idea.

Tested on x86_64-linux.

Submission history:

v2:
- rebase after "Index DWARF in the background" changes

v1:
- https://sourceware.org/pipermail/gdb-patches/2024-January/205666.html
- approved by Tom Tromey

Tom de Vries (3):
  gdb/symtab: Allow changing of added cooked_index entries
  gdb/symtab: Make cooked_index_entry::parent_entry private
  gdb/symtab: Eliminate deferred_entry

 gdb/dwarf2/cooked-index.c | 24 ++++++-----
 gdb/dwarf2/cooked-index.h | 88 +++++++++++++++++++++++++++++++--------
 gdb/dwarf2/read.c         | 41 ++++++++----------
 3 files changed, 101 insertions(+), 52 deletions(-)


base-commit: d006ec41c448d9f4a84df50391e87cbf0aa8c152
-- 
2.35.3


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

end of thread, other threads:[~2024-01-10  9:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 17:04 [PATCH v2 0/3] [gdb/symtab] Eliminate deferred_entry Tom de Vries
2024-01-09 17:04 ` [PATCH v2 1/3] gdb/symtab: Allow changing of added cooked_index entries Tom de Vries
2024-01-09 17:04 ` [PATCH v2 2/3] gdb/symtab: Make cooked_index_entry::parent_entry private Tom de Vries
2024-01-09 17:04 ` [PATCH v2 3/3] gdb/symtab: Eliminate deferred_entry Tom de Vries
2024-01-10  9:13   ` Tom de Vries
2024-01-09 19:08 ` [PATCH v2 0/3] [gdb/symtab] " Tom Tromey

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).