]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove a use of the comp_unit backlink
authorTom Tromey <tom@tromey.com>
Wed, 12 Feb 2020 22:45:08 +0000 (15:45 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 12 Feb 2020 22:51:58 +0000 (15:51 -0700)
commit4debb2379696829391bfb519ed9a5f415d6e190a
treecf0fdf38f3b0eb6d2db30921aa57409aef133bb3
parent0d404d447ae34e31bdf58ba09c5d3254db3766e1
Remove a use of the comp_unit backlink

The DWARF frame comp_unit object still has a backlink to the objfile.
In order to be truly objfile-independent, this must be removed.

This patch removes one such use, by passing the gdbarch to
decode_frame_entry directly.

gdb/ChangeLog
2020-02-12  Tom Tromey  <tom@tromey.com>

* dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
(decode_frame_entry): Likewise.
(dwarf2_build_frame_info): Update.
gdb/ChangeLog
gdb/dwarf2/frame.c