Go to file
Tom Tromey 33c6eaaefc Do more DWARF reading in the background
This patch rearranges the DWARF reader so that more work is done in
the background.  This is PR symtab/29942.

The idea here is that there is only a small amount of work that must
be done on the main thread when scanning DWARF -- before the main
scan, the only part is mapping the section data.

Currently, the DWARF reader uses the quick_symbol_functions "lazy"
functionality to defer even starting to read.  This patch instead
changes the reader to start reading immediately, but doing more in
worker tasks.

Before this patch, "file" on my machine:

    (gdb) file /tmp/gdb
    2023-10-23 12:29:56.885 - command started
    Reading symbols from /tmp/gdb...
    2023-10-23 12:29:58.047 - command finished
    Command execution time: 5.867228 (cpu), 1.162444 (wall)

After the patch, more work is done in the background and so this takes
a bit less time:

    (gdb) file /tmp/gdb
    2023-10-23 13:25:51.391 - command started
    Reading symbols from /tmp/gdb...
    2023-10-23 13:25:51.712 - command finished
    Command execution time: 1.894500 (cpu), 0.320306 (wall)

I think this could be further sped up by using the shared library load
map to avoid objfile loops like the one in expand_symtab_containing_pc
-- it seems like the correct objfile could be chosen more directly.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29942
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30174
2024-01-08 18:40:21 -07:00
bfd Automatic date update in version.in 2024-01-09 00:02:02 +00:00
binutils MAINTAINERS: Update my email address 2024-01-08 18:55:03 +00:00
config libiberty: Disable hwcaps for sha1.o 2023-11-30 10:14:30 +01:00
contrib
cpu sim: cris: change temp var name slightly to avoid shadowing 2024-01-06 23:30:43 -05:00
elfcpp Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
etc Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
gas MIPS/GAS: mips.exp, mark all mipsisa32*-linux as addr32 2024-01-08 14:45:01 +00:00
gdb Do more DWARF reading in the background 2024-01-08 18:40:21 -07:00
gdbserver gdb: change regcache interface to use array_view 2023-12-14 16:04:49 +00:00
gdbsupport Add gdb::task_group 2024-01-08 18:40:21 -07:00
gnulib
gold Enforce C++11 as a minimum for building gold [PR30867] 2024-01-05 13:00:11 +10:30
gprof Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
gprofng Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
include arm: Add support for Armv8.9-A and Armv9.4-A 2024-01-08 14:13:40 +00:00
ld Add support for the aarch64-gnu target (GNU/Hurd on AArch64) 2024-01-08 09:51:58 +00:00
libbacktrace
libctf Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
libdecnumber
libiberty Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
libsframe Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
opcodes aarch64: Add ite feature system registers. 2024-01-08 14:09:37 +00:00
readline
sim sim: build: clean more generated outputs 2024-01-08 20:33:14 -05:00
texinfo
zlib
.cvsignore
.editorconfig
.gitattributes
.gitignore
ar-lib
ChangeLog
compile
config-ml.in
config.guess Synchronize config.sub and config.guess with their upstream master versions. 2024-01-04 12:00:34 +00:00
config.rpath
config.sub Synchronize config.sub and config.guess with their upstream master versions. 2024-01-04 12:00:34 +00:00
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.LIBGLOSS
COPYING.NEWLIB
depcomp
djunpack.bat
install-sh
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS
Makefile.def gettext: disable install, docs targets, libasprintf, threads 2023-12-18 09:39:17 -07:00
Makefile.in gettext: disable install, docs targets, libasprintf, threads 2023-12-18 09:39:17 -07:00
Makefile.tpl
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
README-maintainer-mode
SECURITY.txt
setup.com
src-release.sh
symlink-tree
test-driver
ylwrap

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.