From: Jan Vrany via Gdb <gdb@sourceware.org>
To: GDB mailing list <gdb@sourceware.org>
Subject: Internals of -readnow implementation
Date: Tue, 11 Nov 2025 16:18:05 +0000 [thread overview]
Message-ID: <a91e746f9a15a78d887fcbd3a2c19e5c90f7586d.camel@vrany.io> (raw)
Hi,
looking at how -readnow is implemented, I'm puzzled
why implementation of readnow_functions inherits/user
dwarf2_base_index_functions?
My understanding is that if -readnow is specified, then
all compunit symbtabs in that objfile are fully read.
It seems to me that in theory one can implement it "directly"
by traversing compunit symtabs, its blockvector and symbols
(rather than using dwarf2_per_objfile and alike).
Is that because it was just easier to implement it this way
or is there a reason why it has to go through DWARF reader
structures?
Thanks,
Jan
next reply other threads:[~2025-11-11 16:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-11 16:18 Jan Vrany via Gdb [this message]
2025-11-11 21:18 ` Tom Tromey
2025-11-11 21:44 ` Jan Vrany via Gdb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a91e746f9a15a78d887fcbd3a2c19e5c90f7586d.camel@vrany.io \
--to=gdb@sourceware.org \
--cc=jan@vrany.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox