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.
This commit is contained in:
Michael Snyder 2010-05-07 02:09:55 +00:00
parent 1c5465ac60
commit c6913b7d1e
10 changed files with 19 additions and 21 deletions

View file

@ -1,5 +1,22 @@
2010-05-06 Michael Snyder <msnyder@vmware.com> 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): * frame-unwind.c (frame_unwind_find_by_frame):
Delete unused variable. Delete unused variable.
* gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.

View file

@ -300,7 +300,6 @@ call_target_sbrk (int sbrk_arg)
static int static int
derive_heap_segment (bfd *abfd, bfd_vma *bottom, bfd_vma *top) 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_data_memory = 0;
bfd_vma top_of_heap = 0; bfd_vma top_of_heap = 0;
bfd_size_type sec_size; bfd_size_type sec_size;
@ -476,14 +475,13 @@ objfile_find_memory_regions (int (*func) (CORE_ADDR, unsigned long,
bfd *ibfd = objfile->obfd; bfd *ibfd = objfile->obfd;
asection *isec = objsec->the_bfd_section; asection *isec = objsec->the_bfd_section;
flagword flags = bfd_get_section_flags (ibfd, isec); flagword flags = bfd_get_section_flags (ibfd, isec);
int ret;
if ((flags & SEC_ALLOC) || (flags & SEC_LOAD)) if ((flags & SEC_ALLOC) || (flags & SEC_LOAD))
{ {
int size = bfd_section_size (ibfd, isec); int size = bfd_section_size (ibfd, isec);
int ret; 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. */ 1, /* All sections will be readable. */
(flags & SEC_READONLY) == 0, /* Writable. */ (flags & SEC_READONLY) == 0, /* Writable. */
(flags & SEC_CODE) != 0, /* Executable. */ (flags & SEC_CODE) != 0, /* Executable. */

View file

@ -527,8 +527,6 @@ print_inferior (struct ui_out *uiout, int requested_inferior)
/* Compute number of inferiors we will print. */ /* Compute number of inferiors we will print. */
for (inf = inferior_list; inf; inf = inf->next) for (inf = inferior_list; inf; inf = inf->next)
{ {
struct cleanup *chain2;
if (requested_inferior != -1 && inf->num != requested_inferior) if (requested_inferior != -1 && inf->num != requested_inferior)
continue; continue;

View file

@ -313,7 +313,6 @@ jit_inferior_init (struct gdbarch *gdbarch)
struct jit_descriptor descriptor; struct jit_descriptor descriptor;
struct jit_code_entry cur_entry; struct jit_code_entry cur_entry;
CORE_ADDR cur_entry_addr; CORE_ADDR cur_entry_addr;
struct cleanup *old_cleanups;
/* When we register code, GDB resets its breakpoints in case symbols have /* 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 changed. That in turn calls this handler, which makes us look for new

View file

@ -186,7 +186,6 @@ remove_program_space (struct program_space *pspace)
struct program_space * struct program_space *
clone_program_space (struct program_space *dest, struct program_space *src) clone_program_space (struct program_space *dest, struct program_space *src)
{ {
struct program_space *new_pspace;
struct cleanup *old_chain; struct cleanup *old_chain;
old_chain = save_current_program_space (); old_chain = save_current_program_space ();
@ -248,8 +247,6 @@ save_current_program_space (void)
static int static int
pspace_empty_p (struct program_space *pspace) pspace_empty_p (struct program_space *pspace)
{ {
struct inferior *inf;
if (find_inferior_for_program_space (pspace) != NULL) if (find_inferior_for_program_space (pspace) != NULL)
return 0; return 0;

View file

@ -838,8 +838,6 @@ record_core_open_1 (char *name, int from_tty)
static void static void
record_open_1 (char *name, int from_tty) record_open_1 (char *name, int from_tty)
{ {
struct target_ops *t;
if (record_debug) if (record_debug)
fprintf_unfiltered (gdb_stdlog, "Process record: record_open\n"); fprintf_unfiltered (gdb_stdlog, "Process record: record_open\n");
@ -2174,7 +2172,6 @@ record_restore (void)
while (1) while (1)
{ {
int ret;
uint8_t rectype; uint8_t rectype;
uint32_t regnum, len, signal, count; uint32_t regnum, len, signal, count;
uint64_t addr; uint64_t addr;
@ -2333,7 +2330,6 @@ static void
cmd_record_save (char *args, int from_tty) cmd_record_save (char *args, int from_tty)
{ {
char *recfilename, recfilename_buffer[40]; char *recfilename, recfilename_buffer[40];
int recfd;
struct record_entry *cur_record_list; struct record_entry *cur_record_list;
uint32_t magic; uint32_t magic;
struct regcache *regcache; struct regcache *regcache;

View file

@ -702,7 +702,6 @@ tdesc_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *tdesc_type)
case TDESC_TYPE_FLAGS: case TDESC_TYPE_FLAGS:
{ {
struct type *type, *field_type;
struct tdesc_type_flag *f; struct tdesc_type_flag *f;
int ix; int ix;
@ -852,7 +851,6 @@ tdesc_register_size (const struct tdesc_feature *feature,
static struct tdesc_arch_reg * static struct tdesc_arch_reg *
tdesc_find_arch_register (struct gdbarch *gdbarch, int regno) tdesc_find_arch_register (struct gdbarch *gdbarch, int regno)
{ {
struct tdesc_arch_reg *reg;
struct tdesc_arch_data *data; struct tdesc_arch_data *data;
data = gdbarch_data (gdbarch, tdesc_data); data = gdbarch_data (gdbarch, tdesc_data);
@ -1091,7 +1089,7 @@ tdesc_use_registers (struct gdbarch *gdbarch,
struct tdesc_arch_data *early_data) struct tdesc_arch_data *early_data)
{ {
int num_regs = gdbarch_num_regs (gdbarch); int num_regs = gdbarch_num_regs (gdbarch);
int i, ixf, ixr; int ixf, ixr;
struct tdesc_feature *feature; struct tdesc_feature *feature;
struct tdesc_reg *reg; struct tdesc_reg *reg;
struct tdesc_arch_data *data; struct tdesc_arch_data *data;

View file

@ -720,7 +720,6 @@ xinclude_start_include (struct gdb_xml_parser *parser,
char *href = VEC_index (gdb_xml_value_s, attributes, 0)->value; char *href = VEC_index (gdb_xml_value_s, attributes, 0)->value;
struct cleanup *back_to; struct cleanup *back_to;
char *text, *output; char *text, *output;
int ret;
gdb_xml_debug (parser, _("Processing XInclude of \"%s\""), href); 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, xml_fetch_another fetcher, void *fetcher_baton,
int depth) int depth)
{ {
enum XML_Error err;
struct gdb_xml_parser *parser; struct gdb_xml_parser *parser;
struct xinclude_parsing_data *data; struct xinclude_parsing_data *data;
struct cleanup *back_to; struct cleanup *back_to;

View file

@ -237,8 +237,6 @@ syscall_parse_xml (const char *document, xml_fetch_another fetcher,
struct cleanup *result_cleanup; struct cleanup *result_cleanup;
struct gdb_xml_parser *parser; struct gdb_xml_parser *parser;
struct syscall_parsing_data data; struct syscall_parsing_data data;
char *expanded_text;
int i;
parser = gdb_xml_create_parser_and_cleanup (_("syscalls info"), parser = gdb_xml_create_parser_and_cleanup (_("syscalls info"),
syselements, &data); syselements, &data);

View file

@ -152,7 +152,6 @@ tdesc_start_target (struct gdb_xml_parser *parser,
const struct gdb_xml_element *element, const struct gdb_xml_element *element,
void *user_data, VEC(gdb_xml_value_s) *attributes) 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; char *version = VEC_index (gdb_xml_value_s, attributes, 0)->value;
if (strcmp (version, "1.0") != 0) if (strcmp (version, "1.0") != 0)