diff options
-rw-r--r-- | gdb/ChangeLog | 11 | ||||
-rw-r--r-- | gdb/mem-break.c | 1 | ||||
-rw-r--r-- | gdb/memattr.c | 5 | ||||
-rw-r--r-- | gdb/osabi.c | 2 | ||||
-rw-r--r-- | gdb/parse.c | 4 | ||||
-rw-r--r-- | gdb/reverse.c | 2 | ||||
-rw-r--r-- | gdb/target.c | 1 |
7 files changed, 14 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1962b15..94a5a7e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,16 @@ 2010-05-06 Michael Snyder <msnyder@vmware.com> + * 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 6b7de4e..57c8a23 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 eee150c..3fcc45e 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 84590cd..57af407 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], "<invalid>") != 0) internal_error (__FILE__, __LINE__, diff --git a/gdb/parse.c b/gdb/parse.c index 51e1550..5319555 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 6b8da93..be8801f 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 fec11ab..719ca69 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 |