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 | a7a3ae5c02d6d8711c2c336b9b809d05211fc497 (patch) | |
tree | aa25855ca446dd5214fc5672617cd4dd17f951e3 /gdbserver/utils.cc | |
parent | a9d654186220b958b63185603675e69dd9316067 (diff) | |
download | binutils-a7a3ae5c02d6d8711c2c336b9b809d05211fc497.zip binutils-a7a3ae5c02d6d8711c2c336b9b809d05211fc497.tar.gz binutils-a7a3ae5c02d6d8711c2c336b9b809d05211fc497.tar.bz2 |
Store the comp_unit instead of the FDE table
This changes the DWARF frame code to store the comp_unit on the
objfile, rather than storing the FDE table. It also changes the
comp_unit to be heap-allocated using "new".
This change makes it simpler for a later patch to add a field to the
comp_unit, and to have deallaction work properly. This in turn is
important for making the frame data be independent of the objfile.
gdb/ChangeLog
2020-02-12 Tom Tromey <tom@tromey.com>
* dwarf2/frame.c (struct comp_unit): Add initializers and
constructor.
(dwarf2_frame_objfile_data): Store a comp_unit.
(dwarf2_frame_find_fde): Update.
(dwarf2_build_frame_info): Use "new".
Diffstat (limited to 'gdbserver/utils.cc')
0 files changed, 0 insertions, 0 deletions