This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Handle dereferencing Rust trait objects
Tom> I could do something else. A vector of pairs, sorted by address; or an
Tom> htab_t.
Pedro> Can you say something about the number of elements that usually
Pedro> ends up in this map in some reasonably sized Rust-using app (Firefox?)?
Tom> I will look at this tomorrow.
I had a bit of a panic when I ran this on libxul and got a count of
501908 symbols.
However, my first attempt counted incorrectly; there are actually only
46488 unique LOC_STATIC psymbols in libxul. This roughly conforms to
the idea that the psymbol cache is ~90% effective.
Anyway, we discussed it on irc a bit, and I think I'll switch to the
sorted vector of pairs. This will save some space, and isn't much
slower or harder to code.
Tom