public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Index files are not used in the session where they were created
@ 2023-07-25  8:01 Dmitry Neverov
  2023-07-26 16:20 ` Tom Tromey
  0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Neverov @ 2023-07-25  8:01 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

I'm investigating whether index-caches help with slow symbols
loading (https://sourceware.org/bugzilla/show_bug.cgi?id=30520).

They seem to help, but only on the second gdb run. When I start a
debug session for the first time with an empty ~/.caches/gdb
directory, I can see from logs that gdb tries to read index
files, fails because they don't exist, and then writes index to
disk. The index is saved in a few seconds.

If I then try loading children of a variable causing a slow symbol
lookup, the lookup is still slow. Even though the index is ready
and is saved to disk.

If I restart gdb after the index is written, then gdb picks it
up, and symbol loading is much faster - a few seconds instead of
a minute.

Is there a way to use the created index without gdb restart?

-- 
Dmitrii Neverov

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

end of thread, other threads:[~2023-11-15 10:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25  8:01 Index files are not used in the session where they were created Dmitry Neverov
2023-07-26 16:20 ` Tom Tromey
2023-08-01  6:42   ` Dmitry Neverov
2023-10-13  8:57     ` Dmitry Neverov
2023-10-25 15:59       ` Dmitry Neverov
2023-11-01 17:51         ` Tom Tromey
2023-11-06 10:41           ` Dmitry Neverov
2023-11-13 16:59           ` Dmitry Neverov
2023-11-15 10:18           ` Dmitry Neverov

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