aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-06 01:16:15 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-06 01:16:15 +0000
commit952a6d4151ae37ef4f7121c000cab8fce01577ac (patch)
treeb88d5891544e658309d045c8f72048d7f81d20b0 /gdb/symfile.c
parentafe38095c3efc0b5713f810c9ad3d23cdfe71ca5 (diff)
downloadgdb-952a6d4151ae37ef4f7121c000cab8fce01577ac.zip
gdb-952a6d4151ae37ef4f7121c000cab8fce01577ac.tar.gz
gdb-952a6d4151ae37ef4f7121c000cab8fce01577ac.tar.bz2
2010-05-05 Michael Snyder <msnyder@vmware.com>
* psymtab.c (lookup_partial_symbol): Delete unused variable. (find_last_source_symtab_from_partial): Delete unused variable. * symfile.c (place_section): Delete unused variable. (default_symfile_offsets): Delete unused variable. (get_debug_link_info): Delete unused variable. (find_separate_debug_file_by_debuglink): Delete unused variable. (add_symbol_file_command): Delete unused variable. (symfile_find_segment_sections): Delete unused variable. * symmisc.c (free_symtab): Delete unused variable. (dump_symtab_1): Delete unused variable. * symtab.c (lookup_symbil_aux_quick): Delete unused variable. (find_pc_sect_symtab): Delete unused variable. (skip_prologue_using_lineinfo): Delete unused variable. (sources_info): Delete unused variable. (completion_list_add_name): Delete unused variable. (expand_line_sal): Delete unused variable.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index e39a1f0..31109ab 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -473,7 +473,6 @@ place_section (bfd *abfd, asection *sect, void *obj)
for (cur_sec = abfd->sections; cur_sec != NULL; cur_sec = cur_sec->next)
{
int indx = cur_sec->index;
- CORE_ADDR cur_offset;
/* We don't need to compare against ourself. */
if (cur_sec == sect)
@@ -739,7 +738,6 @@ default_symfile_offsets (struct objfile *objfile,
struct place_section_arg arg;
bfd *abfd = objfile->obfd;
asection *cur_sec;
- CORE_ADDR lowest = 0;
for (cur_sec = abfd->sections; cur_sec != NULL; cur_sec = cur_sec->next)
/* We do not expect this to happen; just skip this step if the
@@ -1247,7 +1245,6 @@ get_debug_link_info (struct objfile *objfile, unsigned long *crc32_out)
unsigned long crc32;
char *contents;
int crc_offset;
- unsigned char *p;
sect = bfd_get_section_by_name (objfile->obfd, ".gnu_debuglink");
@@ -1347,12 +1344,10 @@ The directory where separate debug symbols are searched for is \"%s\".\n"),
char *
find_separate_debug_file_by_debuglink (struct objfile *objfile)
{
- asection *sect;
- char *basename, *name_copy, *debugdir;
+ char *basename, *debugdir;
char *dir = NULL;
char *debugfile = NULL;
char *canon_name = NULL;
- bfd_size_type debuglink_size;
unsigned long crc32;
int i;
@@ -2113,7 +2108,6 @@ add_symbol_file_command (char *args, int from_tty)
char *filename = NULL;
int flags = OBJF_USERLOADED;
char *arg;
- int expecting_option = 0;
int section_index = 0;
int argcnt = 0;
int sec_num = 0;
@@ -3630,7 +3624,6 @@ symfile_find_segment_sections (struct objfile *objfile)
for (i = 0, sect = abfd->sections; sect != NULL; i++, sect = sect->next)
{
- CORE_ADDR vma;
int which = data->segment_info[i];
if (which == 1)