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 | 219823045622bd111d68b984e31aa7b1712d5e10 (patch) | |
tree | 01cd34467452ab222ff4d980109de326c0ec8f1e /gdbserver/utils.cc | |
parent | 4debb2379696829391bfb519ed9a5f415d6e190a (diff) | |
download | binutils-219823045622bd111d68b984e31aa7b1712d5e10.zip binutils-219823045622bd111d68b984e31aa7b1712d5e10.tar.gz binutils-219823045622bd111d68b984e31aa7b1712d5e10.tar.bz2 |
Remove the objfile backlink from comp_unit
This removes the objfile backlink from comp_unit. The only remaining
uses involved fetching the text offset from the objfile. However,
this is already conveniently computed at all the sites that call
execute_cfa_program, and so it can simply be passed in.
gdb/ChangeLog
2020-02-12 Tom Tromey <tom@tromey.com>
* dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
(comp_unit): Don't initialize objfile.
(execute_cfa_program): Add text_offset parameter.
(execute_cfa_program_test, dwarf2_fetch_cfa_info)
(dwarf2_frame_cache): Update.
(dwarf2_build_frame_info): Don't set "objfile" member.
Diffstat (limited to 'gdbserver/utils.cc')
0 files changed, 0 insertions, 0 deletions