PR 6832
* dwarf2.c (struct comp_unit): Add sec_info_ptr. (find_abstract_instance_name): Use it. (parse_comp_unit): Set it.
This commit is contained in:
parent
e96c574bdc
commit
a358ecb8a8
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2010-01-11 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 6832
|
||||||
|
* dwarf2.c (struct comp_unit): Add sec_info_ptr.
|
||||||
|
(find_abstract_instance_name): Use it.
|
||||||
|
(parse_comp_unit): Set it.
|
||||||
|
|
||||||
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
* Makefile.in: Regenerate.
|
* Makefile.in: Regenerate.
|
||||||
|
|
|
@ -216,6 +216,9 @@ struct comp_unit
|
||||||
by its reference. */
|
by its reference. */
|
||||||
bfd_byte *info_ptr_unit;
|
bfd_byte *info_ptr_unit;
|
||||||
|
|
||||||
|
/* Pointer to the start of the debug section, for DW_FORM_ref_addr. */
|
||||||
|
bfd_byte *sec_info_ptr;
|
||||||
|
|
||||||
/* The offset into .debug_line of the line number table. */
|
/* The offset into .debug_line of the line number table. */
|
||||||
unsigned long line_offset;
|
unsigned long line_offset;
|
||||||
|
|
||||||
|
@ -1811,7 +1814,7 @@ find_abstract_instance_name (struct comp_unit *unit,
|
||||||
if (!die_ref)
|
if (!die_ref)
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
info_ptr = unit->stash->sec_info_ptr + die_ref;
|
info_ptr = unit->sec_info_ptr + die_ref;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
info_ptr = unit->info_ptr_unit + die_ref;
|
info_ptr = unit->info_ptr_unit + die_ref;
|
||||||
|
@ -2219,6 +2222,7 @@ parse_comp_unit (struct dwarf2_debug *stash,
|
||||||
unit->end_ptr = end_ptr;
|
unit->end_ptr = end_ptr;
|
||||||
unit->stash = stash;
|
unit->stash = stash;
|
||||||
unit->info_ptr_unit = info_ptr_unit;
|
unit->info_ptr_unit = info_ptr_unit;
|
||||||
|
unit->sec_info_ptr = stash->sec_info_ptr;
|
||||||
|
|
||||||
for (i = 0; i < abbrev->num_attrs; ++i)
|
for (i = 0; i < abbrev->num_attrs; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue