[PATCH 00/22] More splitting of dwarf2/read.c

Tom Tromey tom@tromey.com
Sun Mar 22 18:45:01 GMT 2020


One goal of mine is to split up the DWARF reader code into many
smaller, more self-contained files.  I think this will make the code
easier to read and to work on; and also let us tease out (and repair)
hidden dependencies.  This latter part is desirable because, in the
longer run, I'd like to parallelize DWARF reading.

So, here is round 2 of splitting.

The main change here is that the macro-reading code is moved to its
own file.  It's almost possible, after this, to scan macros in a
worker thread.  (However, dwz file handling, and the recent move to
sharing a bcache, interfere with this.)

Some smaller utility functions are also moved into other files as
well.

Let me know what you think,
Tom




More information about the Gdb-patches mailing list