[PATCH] Shrink size of dwarf2_per_cu_data
Tom Tromey
tom@tromey.com
Fri Apr 23 12:55:55 GMT 2021
Christian> I'm not sure if all the .so files get loaded at the same time, so it
Christian> may be a bit fewer in practice. Of course this does not include any
Christian> CUs that may come from debug symbols for system libraries. Is there a
Christian> gdb command that could tell me the exact number?
I don't think so.
(gdb) pipe maint print stat | grep "psym tables"
is pretty close, but claims to omit expanded CUs.
Also if you're using an index you need something more like
(gdb) pipe maint print stat | egrep "(psym tables|read CUs)"
... then add up both the read and unread CUs.
Tom
More information about the Gdb-patches
mailing list