mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
* dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
address range of a compilation unit without children. * mdebugread.c (parse_partial_symbols): Fix handling of stabs continuations, use xmalloc and xrealloc.
This commit is contained in:
@@ -1002,15 +1002,17 @@ dwarf2_build_psymtabs_hard (objfile, section_offsets, mainline)
|
||||
If so, read the rest of the partial symbols from this comp unit.
|
||||
If not, there's no more debug_info for this comp unit. */
|
||||
if (comp_unit_die.has_children)
|
||||
info_ptr = scan_partial_symbols (info_ptr, objfile, &lowpc, &highpc);
|
||||
|
||||
/* If the compilation unit didn't have an explicit address range,
|
||||
then use the information extracted from its child dies. */
|
||||
if (!comp_unit_has_pc_info)
|
||||
{
|
||||
comp_unit_die.lowpc = lowpc;
|
||||
comp_unit_die.highpc = highpc;
|
||||
}
|
||||
info_ptr = scan_partial_symbols (info_ptr, objfile, &lowpc, &highpc);
|
||||
|
||||
/* If the compilation unit didn't have an explicit address range,
|
||||
then use the information extracted from its child dies. */
|
||||
if (!comp_unit_has_pc_info)
|
||||
{
|
||||
comp_unit_die.lowpc = lowpc;
|
||||
comp_unit_die.highpc = highpc;
|
||||
}
|
||||
}
|
||||
pst->textlow = comp_unit_die.lowpc + baseaddr;
|
||||
pst->texthigh = comp_unit_die.highpc + baseaddr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user