mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 10:30:46 +00:00
Remove reference to dwarf2_per_cu_data::dwarf2_per_objfile in queue_and_load_all_dwo_tus
In this context, we know that per_cu->cu will be set, as there is this
assertion:
gdb_assert (per_cu->cu != NULL)
So in order to remove the dwarf2_per_cu_data::dwarf2_per_objfile
reference in queue_and_load_all_dwo_tus, we can go through per_cu->cu.
This adds a reference to dwarf2_per_cu_data::cu, but it will get removed
eventually, in a subsequent patch.
gdb/ChangeLog:
* dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
data through per_cu->cu.
This commit is contained in:
@@ -12832,8 +12832,8 @@ queue_and_load_all_dwo_tus (struct dwarf2_per_cu_data *per_cu)
|
||||
struct dwo_file *dwo_file;
|
||||
|
||||
gdb_assert (!per_cu->is_debug_types);
|
||||
gdb_assert (get_dwp_file (per_cu->dwarf2_per_objfile) == NULL);
|
||||
gdb_assert (per_cu->cu != NULL);
|
||||
gdb_assert (get_dwp_file (per_cu->cu->per_objfile) == NULL);
|
||||
|
||||
dwo_unit = per_cu->cu->dwo_unit;
|
||||
gdb_assert (dwo_unit != NULL);
|
||||
|
||||
Reference in New Issue
Block a user