mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
read_cutu_die_from_dwo: Misc minor cleanups.
* dwarf2read.c (read_cutu_die_from_dwo): Fix function comment. Remove unused local comp_dir_attr. Assert exactly one of stub_comp_unit_die, stub_comp_dir is non-NULL.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2014-03-07 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
|
||||||
|
Remove unused local comp_dir_attr. Assert exactly one of
|
||||||
|
stub_comp_unit_die, stub_comp_dir is non-NULL.
|
||||||
|
|
||||||
2014-03-07 Joel Brobecker <brobecker@adacore.com>
|
2014-03-07 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* target.h (complete_target_initialization, add_target):
|
* target.h (complete_target_initialization, add_target):
|
||||||
|
@ -4947,7 +4947,7 @@ init_cu_die_reader (struct die_reader_specs *reader,
|
|||||||
STUB_COMP_DIR is similar to STUB_COMP_UNIT_DIE: When reading a TU directly
|
STUB_COMP_DIR is similar to STUB_COMP_UNIT_DIE: When reading a TU directly
|
||||||
from the DWO file, bypassing the stub, it contains the DW_AT_comp_dir
|
from the DWO file, bypassing the stub, it contains the DW_AT_comp_dir
|
||||||
attribute of the referencing CU. Exactly one of STUB_COMP_UNIT_DIE and
|
attribute of the referencing CU. Exactly one of STUB_COMP_UNIT_DIE and
|
||||||
COMP_DIR must be non-NULL.
|
STUB_COMP_DIR must be non-NULL.
|
||||||
*RESULT_READER,*RESULT_INFO_PTR,*RESULT_COMP_UNIT_DIE,*RESULT_HAS_CHILDREN
|
*RESULT_READER,*RESULT_INFO_PTR,*RESULT_COMP_UNIT_DIE,*RESULT_HAS_CHILDREN
|
||||||
are filled in with the info of the DIE from the DWO file.
|
are filled in with the info of the DIE from the DWO file.
|
||||||
ABBREV_TABLE_PROVIDED is non-zero if the caller of init_cutu_and_read_dies
|
ABBREV_TABLE_PROVIDED is non-zero if the caller of init_cutu_and_read_dies
|
||||||
@ -4976,11 +4976,10 @@ read_cutu_die_from_dwo (struct dwarf2_per_cu_data *this_cu,
|
|||||||
int i,num_extra_attrs;
|
int i,num_extra_attrs;
|
||||||
struct dwarf2_section_info *dwo_abbrev_section;
|
struct dwarf2_section_info *dwo_abbrev_section;
|
||||||
struct attribute *attr;
|
struct attribute *attr;
|
||||||
struct attribute comp_dir_attr;
|
|
||||||
struct die_info *comp_unit_die;
|
struct die_info *comp_unit_die;
|
||||||
|
|
||||||
/* Both can't be provided. */
|
/* Exactly one of these must be provided. */
|
||||||
gdb_assert (! (stub_comp_unit_die && stub_comp_dir));
|
gdb_assert ((stub_comp_unit_die != NULL) + (stub_comp_dir != NULL) == 1);
|
||||||
|
|
||||||
/* These attributes aren't processed until later:
|
/* These attributes aren't processed until later:
|
||||||
DW_AT_stmt_list, DW_AT_low_pc, DW_AT_high_pc, DW_AT_ranges.
|
DW_AT_stmt_list, DW_AT_low_pc, DW_AT_high_pc, DW_AT_ranges.
|
||||||
|
Reference in New Issue
Block a user