diff options
author | Tom Tromey <tromey@redhat.com> | 2010-03-10 18:37:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-03-10 18:37:24 +0000 |
commit | be391dcafc991c4761cb8447f629263decfd55b4 (patch) | |
tree | 5ac541a19f7e6972848357035a4840651d6155ce /gdb/elfread.c | |
parent | e38df1d074456c912b31d672bde73afcea5b5c92 (diff) | |
download | gdb-be391dcafc991c4761cb8447f629263decfd55b4.zip gdb-be391dcafc991c4761cb8447f629263decfd55b4.tar.gz gdb-be391dcafc991c4761cb8447f629263decfd55b4.tar.bz2 |
* elfread.c (elf_symfile_read): Don't call
dwarf2_build_frame_info.
* dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
(struct dwarf2_per_objfile) <objfile>: New field.
(dwarf2_has_info): Now idempotent. Set objfile field.
(dwarf2_read_section): Check and set readin field. Call
posix_madvise.
(dwarf2_build_psymtabs): Don't read all sections.
(read_type_comp_unit_head): Read types section.
(create_debug_types_hash_table): Likewise.
(init_cu_die_reader): Add asserts.
(process_type_comp_unit): Add assert.
(dwarf2_build_psymtabs_hard): Read info section.
(load_partial_comp_unit): Add assert.
(create_all_comp_units): Read info section.
(load_full_comp_unit): Likewise.
(dwarf2_ranges_read): Read ranges section.
(dwarf2_record_block_ranges): Add assert.
(dwarf2_read_abbrevs): Read abbrev section.
(read_indirect_string): Read str section.
(dwarf_decode_line_header): Read line section.
(read_signatured_type_at_offset): Read types section.
(dwarf_decode_macros): Read macinfo section.
(dwarf2_symbol_mark_computed): Read loc section.
* dwarf2-frame.c (dwarf2_frame_find_fde): Call
dwarf2_build_frame_info.
(dwarf2_build_frame_info): Unconditionally set
dwarf2_frame_objfile_data on the objfile.
* configure.ac: Check for posix_madvise.
* config.in, configure: Rebuild.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index e32a1a9..97c0163 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -886,10 +886,6 @@ elf_symfile_read (struct objfile *objfile, int symfile_flags) dwarf2_build_psymtabs (objfile); } - /* FIXME: kettenis/20030504: This still needs to be integrated with - dwarf2read.c in a better way. */ - dwarf2_build_frame_info (objfile); - /* If the file has its own symbol tables it has no separate debug info. `.dynsym'/`.symtab' go to MSYMBOLS, `.debug_info' goes to SYMTABS/PSYMTABS. `.gnu_debuglink' may no longer be present with `.note.gnu.build-id'. */ |