[PATCH v2 41.5/42] Move line_header_hash to dwarf2_per_objfile

Tom Tromey tom@tromey.com
Wed May 27 15:07:09 GMT 2020


>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

Simon> The `line_header_hash` field of `struct dwarf2_per_bfd` contains some
Simon> `struct line_header` objects.  A `struct line_header` objects contains
Simon> some `file_entry` objects.  A `file_entry` object contains a pointer to
Simon> the `symtab` object created from it.  The `line_header_hash` is
Simon> therefore ultimately objfile-dependent and can't be shared as-is between
Simon> objfiles.

Simon> Move it from `dwarf2_per_bfd` to `dwarf2_per_objfile`.

This patch looks good.

I wonder how hard it would be to remove this symtab link and share these
across objfiles.  However, I don't think this is worth delaying the
series for.

Tom


More information about the Gdb-patches mailing list