Lazy language setting
authorTom Tromey <tom@tromey.com>
Wed, 29 Mar 2023 16:55:13 +0000 (10:55 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 9 Jan 2024 01:40:22 +0000 (18:40 -0700)
commit0a008773c59bd80f80c02220537317c865546aca
tree14036ebe5238352b58bd9f4466f92cda2b058aae
parentc83a2802182b3da5d1080425ded0700b3af27f6b
Lazy language setting

When gdb starts up with a symbol file, it uses the program's "main" to
decide the "static context" and the initial language.  With background
DWARF reading, this means that gdb has to wait for a significant
amount of DWARF to be read synchronously.

This patch introduces lazy language setting.  The idea here is that in
many cases, the prompt can show up early, making gdb feel more
responsive.
gdb/gdbthread.h
gdb/language.c
gdb/language.h
gdb/symfile.c
gdb/thread.c