mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-05 00:04:22 +08:00
gdb/
* dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
This commit is contained in:
parent
c767944bf2
commit
824308520b
@ -1,3 +1,7 @@
|
|||||||
|
2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
|
||||||
|
|
||||||
2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
|
2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* dwarf2read.c (read_structure_type): Move processing of
|
* dwarf2read.c (read_structure_type): Move processing of
|
||||||
|
@ -1904,6 +1904,13 @@ dwarf2_read_index (struct objfile *objfile)
|
|||||||
if (dwarf2_per_objfile->gdb_index.asection == NULL
|
if (dwarf2_per_objfile->gdb_index.asection == NULL
|
||||||
|| dwarf2_per_objfile->gdb_index.size == 0)
|
|| dwarf2_per_objfile->gdb_index.size == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* Older elfutils strip versions could keep the section in the main
|
||||||
|
executable while splitting it for the separate debug info file. */
|
||||||
|
if ((bfd_get_file_flags (dwarf2_per_objfile->gdb_index.asection)
|
||||||
|
& SEC_HAS_CONTENTS) == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
dwarf2_read_section (objfile, &dwarf2_per_objfile->gdb_index);
|
dwarf2_read_section (objfile, &dwarf2_per_objfile->gdb_index);
|
||||||
|
|
||||||
addr = dwarf2_per_objfile->gdb_index.buffer;
|
addr = dwarf2_per_objfile->gdb_index.buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user