From fa238c0364af02ffb3e3e7d95781bd0914cbdf35 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 5 May 2010 23:44:19 +0000 Subject: 2010-05-05 Michael Snyder * elfread.c (elf_symtab_read): Delete unused variable. (find_separate_debug_file_by_buildid): Delete unused variables. (elf_symfile_read): Delete unused variable. * coffread.c (coff_symfile_read): Delete unused variables. * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. (read_pe_exported_syms): Delete unused variable. * stabsread.c (define_symbol): Delete unused variable. * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. (process_psymtab_comp_unit): Delete unused variable. (dwarf2_build_psymtabs_hard): Delete unused variable. (load_partial_comp_unit): Delete unused variable. (create_all_comp_units): Delete unused variable. (scan_partial_symbols): Delete unused variable. (add_partial_symbol): Delete unused variable. (add_partial_namespace): Delete unused variable. (add_partial_enumeration): Delete unused variable. (load_full_comp_unit): Delete unused variable. (process_full_comp_unit): Delete unused variable. (read_file_scope): Delete unused variable. (read_type_unit_scope): Delete unused variable. (process_structure_scope): Delete unused variable. (process_enumeration_scope): Delete unused variable. (read_tag_ptr_to_member_type): Delete unused variable. (read_typedef): Delete unused variable. (read_partial_die): Delete unused variable. (decode_locdesc): Delete unused variable. (zeroed_partial_die): Delete unused global variable. --- gdb/elfread.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gdb/elfread.c') diff --git a/gdb/elfread.c b/gdb/elfread.c index 42a1b73..68bbf12 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -223,7 +223,6 @@ elf_symtab_read (struct objfile *objfile, int type, int copy_names) { struct gdbarch *gdbarch = get_objfile_arch (objfile); - long storage_needed; asymbol *sym; long i; CORE_ADDR symaddr; @@ -688,13 +687,6 @@ build_id_to_debug_filename (struct build_id *build_id) static char * find_separate_debug_file_by_buildid (struct objfile *objfile) { - asection *sect; - char *basename, *name_copy, *debugdir; - char *dir = NULL; - char *debugfile = NULL; - char *canon_name = NULL; - bfd_size_type debuglink_size; - int i; struct build_id *build_id; build_id = build_id_bfd_get (objfile->obfd); @@ -751,7 +743,6 @@ elf_symfile_read (struct objfile *objfile, int symfile_flags) bfd *abfd = objfile->obfd; struct elfinfo ei; struct cleanup *back_to; - CORE_ADDR offset; long symcount = 0, dynsymcount = 0, synthcount, storage_needed; asymbol **symbol_table = NULL, **dyn_symbol_table = NULL; asymbol *synthsyms; -- cgit v1.1