diff options
author | Tom Tromey <tom@tromey.com> | 2020-02-12 15:45:08 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-02-12 15:51:58 -0700 |
commit | 3d4560f707b077adfb54759df5efbd96301ca2d8 (patch) | |
tree | c9ef758cce6c2d290761a69477f7a41ca133720e /binutils | |
parent | 219823045622bd111d68b984e31aa7b1712d5e10 (diff) | |
download | gdb-3d4560f707b077adfb54759df5efbd96301ca2d8.zip gdb-3d4560f707b077adfb54759df5efbd96301ca2d8.tar.gz gdb-3d4560f707b077adfb54759df5efbd96301ca2d8.tar.bz2 |
Move the frame data to the BFD when possible
Now that comp_unit and the remaining frame data are all independent of
the objfile, it can all be stored on the BFD and shared across
inferiors.
As with other code doing this same thing, care must be taken to not
share the data when the objfile requires relocations. So, two keys
are used: one for the BFD and one for the objfile, and
gdb_bfd_requires_relocations is used to differentiate between the two
cases.
gdb/ChangeLog
2020-02-12 Tom Tromey <tom@tromey.com>
* dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
(dwarf2_frame_objfile_data): Add comment.
(find_comp_unit, set_comp_unit): New functions.
(dwarf2_frame_find_fde): Use find_comp_unit.
(dwarf2_build_frame_info): Use set_comp_unit.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions