From: Michael Snyder Date: Tue, 1 Mar 2011 00:07:20 +0000 (+0000) Subject: 2011-02-28 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f47fb26507f399b82a023dd9991a38229c200731;p=binutils-gdb.git 2011-02-28 Michael Snyder * dwarf2read.c (add_partial_symbol): Discard unused values. (read_base_type): Delete unused variable. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4dd6ec848e4..b1732857ca1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2011-02-28 Michael Snyder + * dwarf2read.c (add_partial_symbol): Discard unused values. + (read_base_type): Delete unused variable. + * dbxread.c (read_dbx_symtab): Discard unused value. * eval.c (evaluate_subexp_standard): Delete unused variable, diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index d40be86349d..c62e324f588 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -3837,25 +3837,25 @@ add_partial_symbol (struct partial_die_info *pdi, struct dwarf2_cu *cu) of the global scope. But in Ada, we want to be able to access nested procedures globally. So all Ada subprograms are stored in the global scope. */ - /*prim_record_minimal_symbol (actual_name, pdi->lowpc + baseaddr, + /* prim_record_minimal_symbol (actual_name, pdi->lowpc + baseaddr, mst_text, objfile); */ - psym = add_psymbol_to_list (actual_name, strlen (actual_name), - built_actual_name, - VAR_DOMAIN, LOC_BLOCK, - &objfile->global_psymbols, - 0, pdi->lowpc + baseaddr, - cu->language, objfile); + add_psymbol_to_list (actual_name, strlen (actual_name), + built_actual_name, + VAR_DOMAIN, LOC_BLOCK, + &objfile->global_psymbols, + 0, pdi->lowpc + baseaddr, + cu->language, objfile); } else { - /*prim_record_minimal_symbol (actual_name, pdi->lowpc + baseaddr, + /* prim_record_minimal_symbol (actual_name, pdi->lowpc + baseaddr, mst_file_text, objfile); */ - psym = add_psymbol_to_list (actual_name, strlen (actual_name), - built_actual_name, - VAR_DOMAIN, LOC_BLOCK, - &objfile->static_psymbols, - 0, pdi->lowpc + baseaddr, - cu->language, objfile); + add_psymbol_to_list (actual_name, strlen (actual_name), + built_actual_name, + VAR_DOMAIN, LOC_BLOCK, + &objfile->static_psymbols, + 0, pdi->lowpc + baseaddr, + cu->language, objfile); } break; case DW_TAG_constant: @@ -3866,10 +3866,9 @@ add_partial_symbol (struct partial_die_info *pdi, struct dwarf2_cu *cu) list = &objfile->global_psymbols; else list = &objfile->static_psymbols; - psym = add_psymbol_to_list (actual_name, strlen (actual_name), - built_actual_name, VAR_DOMAIN, LOC_STATIC, - list, 0, 0, cu->language, objfile); - + add_psymbol_to_list (actual_name, strlen (actual_name), + built_actual_name, VAR_DOMAIN, LOC_STATIC, + list, 0, 0, cu->language, objfile); } break; case DW_TAG_variable: @@ -3901,12 +3900,12 @@ add_partial_symbol (struct partial_die_info *pdi, struct dwarf2_cu *cu) table building. */ if (pdi->locdesc || pdi->has_type) - psym = add_psymbol_to_list (actual_name, strlen (actual_name), - built_actual_name, - VAR_DOMAIN, LOC_STATIC, - &objfile->global_psymbols, - 0, addr + baseaddr, - cu->language, objfile); + add_psymbol_to_list (actual_name, strlen (actual_name), + built_actual_name, + VAR_DOMAIN, LOC_STATIC, + &objfile->global_psymbols, + 0, addr + baseaddr, + cu->language, objfile); } else { @@ -3917,14 +3916,14 @@ add_partial_symbol (struct partial_die_info *pdi, struct dwarf2_cu *cu) xfree (actual_name); return; } - /*prim_record_minimal_symbol (actual_name, addr + baseaddr, + /* prim_record_minimal_symbol (actual_name, addr + baseaddr, mst_file_data, objfile); */ - psym = add_psymbol_to_list (actual_name, strlen (actual_name), - built_actual_name, - VAR_DOMAIN, LOC_STATIC, - &objfile->static_psymbols, - 0, addr + baseaddr, - cu->language, objfile); + add_psymbol_to_list (actual_name, strlen (actual_name), + built_actual_name, + VAR_DOMAIN, LOC_STATIC, + &objfile->static_psymbols, + 0, addr + baseaddr, + cu->language, objfile); } break; case DW_TAG_typedef: @@ -8184,7 +8183,6 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) static struct type * read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) { - struct gdbarch *gdbarch = get_objfile_arch (cu->objfile); struct type *base_type; struct type *range_type; struct attribute *attr;