aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-04-02 19:23:05 +0000
committerDaniel Jacobowitz <drow@false.org>2004-04-02 19:23:05 +0000
commitc5edf76a75a0f388a49b16f3e04bc1730e3fb709 (patch)
treef653d0a21ab74a7cc46832d835c121a9ebc96edb /gdb
parenta4d7b4b5183e729792e7645a798ace0aa22eff39 (diff)
downloadgdb-c5edf76a75a0f388a49b16f3e04bc1730e3fb709.zip
gdb-c5edf76a75a0f388a49b16f3e04bc1730e3fb709.tar.gz
gdb-c5edf76a75a0f388a49b16f3e04bc1730e3fb709.tar.bz2
* dwarf2read.c (dwarf2_objfile_data_key): New.
(struct dwarf2_per_objfile, dwarf2_per_objfile): New. (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size) (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size) (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size) (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer) (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer) (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer): Remove variables. (struct dwarf2_pinfo): Remove per-objfile members. Update comments. (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE) (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE) (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER) (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER) (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER): Remove macros. (dwarf2_has_info): Take an objfile argument. Allocate per-objfile data. (dwarf2_locate_sections, dwarf2_build_psymtabs) (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard) (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs) (read_partial_die, read_full_die, read_indirect_string) (dwarf_decode_line_header, dwarf_decode_macros) (dwarf2_symbol_mark_computed): Remove use of removed macros. Update uses of removed variables. (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use of removed macros. (_initialize_dwarf2_read): New function. * symfile.h (dwarf2_has_info): Update prototype. * coffread.c (coff_symfile_read): Update call to dwarf2_has_info. * elfread.c (elf_symfile_read): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/coffread.c2
-rw-r--r--gdb/elfread.c2
-rw-r--r--gdb/symfile.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 056ba13..81e78c5 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -634,7 +634,7 @@ coff_symfile_read (struct objfile *objfile, int mainline)
info->stabsects,
info->stabstrsect->filepos, stabstrsize);
}
- if (dwarf2_has_info (abfd))
+ if (dwarf2_has_info (objfile))
{
/* DWARF2 sections. */
dwarf2_build_psymtabs (objfile, mainline);
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 83a1862..7b13cb9 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -575,7 +575,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
str_sect->filepos,
bfd_section_size (abfd, str_sect));
}
- if (dwarf2_has_info (abfd))
+ if (dwarf2_has_info (objfile))
{
/* DWARF 2 sections */
dwarf2_build_psymtabs (objfile, mainline);
diff --git a/gdb/symfile.h b/gdb/symfile.h
index baa353e..6b600ea 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -315,7 +315,7 @@ extern void dwarf_build_psymtabs (struct objfile *, int, file_ptr,
/* From dwarf2read.c */
-extern int dwarf2_has_info (bfd *abfd);
+extern int dwarf2_has_info (struct objfile *);
extern void dwarf2_build_psymtabs (struct objfile *, int);
extern void dwarf2_build_frame_info (struct objfile *);