aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-linux-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-05-27 11:13:52 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-05-27 11:15:54 -0400
commit9e021579fa12f4546a53d031f1293753305eec4b (patch)
treeb8e8a1b8fbaa264f5d9a9d67520baf3303297ad8 /gdb/mips-linux-tdep.c
parentae090bdbf8876d4f72f357cf78301b5e8ec13751 (diff)
downloadbinutils-9e021579fa12f4546a53d031f1293753305eec4b.zip
binutils-9e021579fa12f4546a53d031f1293753305eec4b.tar.gz
binutils-9e021579fa12f4546a53d031f1293753305eec4b.tar.bz2
Add dwarf2_per_objfile field to dwarf2_cu
Subsequent patches will make dwarf2_per_cu_data objfile-independent. This means that the dwarf2_per_cu_data::dwarf2_per_objfile field must go. The code using a dwarf2_cu structure currently accesses the current dwarf2_per_objfile object through dwarf2_cu->per_cu->dwarf2_per_objfile. Since it's ok for the dwarf2_cu to know about the current objfile (a dwarf2_cu is always used in the context of a particular objfile), add a dwarf2_per_objfile field to dwarf2_cu. Upcoming patches will gradually remove uses of dwarf2_per_cu_data::dwarf2_per_objfile in favor of dwarf2_cu::dwarf2_per_objfile, until the former can be removed. gdb/ChangeLog: * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. <per_objfile>: New member. (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update call to dwarf2_cu. (cutu_reader::cutu_reader): Update. (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. Change-Id: I8fd0da7371f65baea1ea7787aad08e10453bc565
Diffstat (limited to 'gdb/mips-linux-tdep.c')
0 files changed, 0 insertions, 0 deletions