From 6b4398f7cdb82bedc0d0a71d95782862bd1a704f Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 6 May 2010 22:29:49 +0000 Subject: [PATCH] 2010-05-06 Michael Snyder * osabi.c (_initialize_gdb_osabi): Delete unused variable. * memattr.c (mem_delete): Delete unused variable. (invalidate_target_mem_regions): Delete unused variable. * mem-break.c (default_memory_insert_breakpoint): Delete unused variable. * target.c (target_get_osdata): Delete unused variable. * parse.c (length_of_subexp): Delete unused variable. (prefixify_subexp): Delete unused variable. (exp_iterate): Delete unused variable. * reverse.c (delete_bookmark_command): Delete unused variable. --- gdb/ChangeLog | 11 +++++++++++ gdb/mem-break.c | 1 - gdb/memattr.c | 5 +---- gdb/osabi.c | 2 -- gdb/parse.c | 4 +--- gdb/reverse.c | 2 +- gdb/target.c | 1 - 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1962b154c49..94a5a7ed94f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,16 @@ 2010-05-06 Michael Snyder + * osabi.c (_initialize_gdb_osabi): Delete unused variable. + * memattr.c (mem_delete): Delete unused variable. + (invalidate_target_mem_regions): Delete unused variable. + * mem-break.c (default_memory_insert_breakpoint): + Delete unused variable. + * target.c (target_get_osdata): Delete unused variable. + * parse.c (length_of_subexp): Delete unused variable. + (prefixify_subexp): Delete unused variable. + (exp_iterate): Delete unused variable. + * reverse.c (delete_bookmark_command): Delete unused variable. + * macrocmd.c (_initialize_macrocmd): Delete unused variable. * macroexp.c (gather_arguments): Delete unused variable. (substitute_args): Delete unused variable. diff --git a/gdb/mem-break.c b/gdb/mem-break.c index 6b7de4ebca8..57c8a2338bf 100644 --- a/gdb/mem-break.c +++ b/gdb/mem-break.c @@ -46,7 +46,6 @@ default_memory_insert_breakpoint (struct gdbarch *gdbarch, { int val; const unsigned char *bp; - int bplen; /* Determine appropriate breakpoint contents and size for this address. */ bp = gdbarch_breakpoint_from_pc diff --git a/gdb/memattr.c b/gdb/memattr.c index eee150c0482..3fcc45eb6dc 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -292,9 +292,6 @@ lookup_mem_region (CORE_ADDR addr) void invalidate_target_mem_regions (void) { - struct mem_region *m; - int ix; - if (!target_mem_regions_valid) return; @@ -655,7 +652,7 @@ mem_disable_command (char *args, int from_tty) static void mem_delete (int num) { - struct mem_region *m1, *m; + struct mem_region *m; int ix; if (!mem_region_list) diff --git a/gdb/osabi.c b/gdb/osabi.c index 84590cdda74..57af407f502 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -630,8 +630,6 @@ extern initialize_file_ftype _initialize_gdb_osabi; /* -Wmissing-prototype */ void _initialize_gdb_osabi (void) { - struct cmd_list_element *c; - if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID], "") != 0) internal_error (__FILE__, __LINE__, diff --git a/gdb/parse.c b/gdb/parse.c index 51e15505a25..5319555072c 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -776,7 +776,7 @@ prefixify_expression (struct expression *expr) int length_of_subexp (struct expression *expr, int endpos) { - int oplen, args, i; + int oplen, args; operator_length (expr, endpos, &oplen, &args); @@ -984,7 +984,6 @@ prefixify_subexp (struct expression *inexpr, int args; int i; int *arglens; - enum exp_opcode opcode; int result = -1; operator_length (inexpr, inend, &oplen, &args); @@ -1472,7 +1471,6 @@ exp_iterate (struct expression *exp, void *data) { int endpos; - const union exp_element *const elts = exp->elts; for (endpos = exp->nelts; endpos > 0; ) { diff --git a/gdb/reverse.c b/gdb/reverse.c index 6b8da935135..be8801f676f 100644 --- a/gdb/reverse.c +++ b/gdb/reverse.c @@ -213,7 +213,7 @@ delete_all_bookmarks (void) static void delete_bookmark_command (char *args, int from_tty) { - struct bookmark *b, *b1; + struct bookmark *b; unsigned long num; if (bookmark_chain == NULL) diff --git a/gdb/target.c b/gdb/target.c index fec11abb39d..719ca695c70 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2575,7 +2575,6 @@ target_supports_non_stop (void) char * target_get_osdata (const char *type) { - char *document; struct target_ops *t; /* If we're already connected to something that can get us OS -- 2.30.2