diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-07 02:09:55 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-07 02:09:55 +0000 |
commit | c6913b7d1e1863c208fb6495b227ef5ea119243e (patch) | |
tree | fd0dce52b205e9792e3f8c6965befd9e6b8ef863 | |
parent | 1c5465ac6061382a64975cbe2e619054bfc71c45 (diff) | |
download | binutils-gdb-c6913b7d1e1863c208fb6495b227ef5ea119243e.tar.gz |
2010-05-06 Michael Snyder <msnyder@vmware.com>
* xml-support.c (xinclude_start_include): Delete unused variable.
(xml_process_xincludes): Delete unused variable.
* xml-syscall.c (syscall_parse_xml): Delete unused variable.
* target-descriptions.c (tdesc_gdb_type): Delete unused variable.
(tdesc_find_arch_register): Delete unused variable.
(tdesc_use_registers): Delete unused variable.
* xml-tdesc.c (tdesc_start_target): Delete unused variable.
* inferior.c (print_inferior): Delete unused variable.
* record.c (record_open_1): Delete unused variable.
(record_restore): Delete unused variable.
(cmd_record_save): Delete unused variable.
* gcore.c (derive_heap_segment): Delete unused variable.
(objfile_find_memory_regions): Use unused variable.
* jit.c (jit_inferior_init): Delete unused variable.
* progspace.c (clone_program_space): Delete unused variable.
(pspace_empty_p): Delete unused variable.
-rw-r--r-- | gdb/ChangeLog | 17 | ||||
-rw-r--r-- | gdb/gcore.c | 4 | ||||
-rw-r--r-- | gdb/inferior.c | 2 | ||||
-rw-r--r-- | gdb/jit.c | 1 | ||||
-rw-r--r-- | gdb/progspace.c | 3 | ||||
-rw-r--r-- | gdb/record.c | 4 | ||||
-rw-r--r-- | gdb/target-descriptions.c | 4 | ||||
-rw-r--r-- | gdb/xml-support.c | 2 | ||||
-rw-r--r-- | gdb/xml-syscall.c | 2 | ||||
-rw-r--r-- | gdb/xml-tdesc.c | 1 |
10 files changed, 19 insertions, 21 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index edfcd65a64c..c3649a83fc3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,22 @@ 2010-05-06 Michael Snyder <msnyder@vmware.com> + * xml-support.c (xinclude_start_include): Delete unused variable. + (xml_process_xincludes): Delete unused variable. + * xml-syscall.c (syscall_parse_xml): Delete unused variable. + * target-descriptions.c (tdesc_gdb_type): Delete unused variable. + (tdesc_find_arch_register): Delete unused variable. + (tdesc_use_registers): Delete unused variable. + * xml-tdesc.c (tdesc_start_target): Delete unused variable. + * inferior.c (print_inferior): Delete unused variable. + * record.c (record_open_1): Delete unused variable. + (record_restore): Delete unused variable. + (cmd_record_save): Delete unused variable. + * gcore.c (derive_heap_segment): Delete unused variable. + (objfile_find_memory_regions): Use unused variable. + * jit.c (jit_inferior_init): Delete unused variable. + * progspace.c (clone_program_space): Delete unused variable. + (pspace_empty_p): Delete unused variable. + * frame-unwind.c (frame_unwind_find_by_frame): Delete unused variable. * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. diff --git a/gdb/gcore.c b/gdb/gcore.c index d8e7ed44f16..5c5816c033b 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -300,7 +300,6 @@ call_target_sbrk (int sbrk_arg) static int derive_heap_segment (bfd *abfd, bfd_vma *bottom, bfd_vma *top) { - struct gdbarch *gdbarch; bfd_vma top_of_data_memory = 0; bfd_vma top_of_heap = 0; bfd_size_type sec_size; @@ -476,14 +475,13 @@ objfile_find_memory_regions (int (*func) (CORE_ADDR, unsigned long, bfd *ibfd = objfile->obfd; asection *isec = objsec->the_bfd_section; flagword flags = bfd_get_section_flags (ibfd, isec); - int ret; if ((flags & SEC_ALLOC) || (flags & SEC_LOAD)) { int size = bfd_section_size (ibfd, isec); int ret; - ret = (*func) (obj_section_addr (objsec), bfd_section_size (ibfd, isec), + ret = (*func) (obj_section_addr (objsec), size, 1, /* All sections will be readable. */ (flags & SEC_READONLY) == 0, /* Writable. */ (flags & SEC_CODE) != 0, /* Executable. */ diff --git a/gdb/inferior.c b/gdb/inferior.c index f1991c97381..a48972140b2 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -527,8 +527,6 @@ print_inferior (struct ui_out *uiout, int requested_inferior) /* Compute number of inferiors we will print. */ for (inf = inferior_list; inf; inf = inf->next) { - struct cleanup *chain2; - if (requested_inferior != -1 && inf->num != requested_inferior) continue; diff --git a/gdb/jit.c b/gdb/jit.c index e17f0ab78ab..42ef8efb5ca 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -313,7 +313,6 @@ jit_inferior_init (struct gdbarch *gdbarch) struct jit_descriptor descriptor; struct jit_code_entry cur_entry; CORE_ADDR cur_entry_addr; - struct cleanup *old_cleanups; /* When we register code, GDB resets its breakpoints in case symbols have changed. That in turn calls this handler, which makes us look for new diff --git a/gdb/progspace.c b/gdb/progspace.c index 42139fd4599..5a2acfd5902 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -186,7 +186,6 @@ remove_program_space (struct program_space *pspace) struct program_space * clone_program_space (struct program_space *dest, struct program_space *src) { - struct program_space *new_pspace; struct cleanup *old_chain; old_chain = save_current_program_space (); @@ -248,8 +247,6 @@ save_current_program_space (void) static int pspace_empty_p (struct program_space *pspace) { - struct inferior *inf; - if (find_inferior_for_program_space (pspace) != NULL) return 0; diff --git a/gdb/record.c b/gdb/record.c index fa6cfbbee89..8da10d46944 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -838,8 +838,6 @@ record_core_open_1 (char *name, int from_tty) static void record_open_1 (char *name, int from_tty) { - struct target_ops *t; - if (record_debug) fprintf_unfiltered (gdb_stdlog, "Process record: record_open\n"); @@ -2174,7 +2172,6 @@ record_restore (void) while (1) { - int ret; uint8_t rectype; uint32_t regnum, len, signal, count; uint64_t addr; @@ -2333,7 +2330,6 @@ static void cmd_record_save (char *args, int from_tty) { char *recfilename, recfilename_buffer[40]; - int recfd; struct record_entry *cur_record_list; uint32_t magic; struct regcache *regcache; diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 86adc9d6bee..874730f5b24 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -702,7 +702,6 @@ tdesc_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *tdesc_type) case TDESC_TYPE_FLAGS: { - struct type *type, *field_type; struct tdesc_type_flag *f; int ix; @@ -852,7 +851,6 @@ tdesc_register_size (const struct tdesc_feature *feature, static struct tdesc_arch_reg * tdesc_find_arch_register (struct gdbarch *gdbarch, int regno) { - struct tdesc_arch_reg *reg; struct tdesc_arch_data *data; data = gdbarch_data (gdbarch, tdesc_data); @@ -1091,7 +1089,7 @@ tdesc_use_registers (struct gdbarch *gdbarch, struct tdesc_arch_data *early_data) { int num_regs = gdbarch_num_regs (gdbarch); - int i, ixf, ixr; + int ixf, ixr; struct tdesc_feature *feature; struct tdesc_reg *reg; struct tdesc_arch_data *data; diff --git a/gdb/xml-support.c b/gdb/xml-support.c index bc134f11fc0..a8dbc519ae8 100644 --- a/gdb/xml-support.c +++ b/gdb/xml-support.c @@ -720,7 +720,6 @@ xinclude_start_include (struct gdb_xml_parser *parser, char *href = VEC_index (gdb_xml_value_s, attributes, 0)->value; struct cleanup *back_to; char *text, *output; - int ret; gdb_xml_debug (parser, _("Processing XInclude of \"%s\""), href); @@ -832,7 +831,6 @@ xml_process_xincludes (const char *name, const char *text, xml_fetch_another fetcher, void *fetcher_baton, int depth) { - enum XML_Error err; struct gdb_xml_parser *parser; struct xinclude_parsing_data *data; struct cleanup *back_to; diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c index 2a4d010bf28..0dc223987bd 100644 --- a/gdb/xml-syscall.c +++ b/gdb/xml-syscall.c @@ -237,8 +237,6 @@ syscall_parse_xml (const char *document, xml_fetch_another fetcher, struct cleanup *result_cleanup; struct gdb_xml_parser *parser; struct syscall_parsing_data data; - char *expanded_text; - int i; parser = gdb_xml_create_parser_and_cleanup (_("syscalls info"), syselements, &data); diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c index 1d78cad33cc..ca60ffb4114 100644 --- a/gdb/xml-tdesc.c +++ b/gdb/xml-tdesc.c @@ -152,7 +152,6 @@ tdesc_start_target (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) { - struct tdesc_parsing_data *data = user_data; char *version = VEC_index (gdb_xml_value_s, attributes, 0)->value; if (strcmp (version, "1.0") != 0) |