2010-05-05 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 5 May 2010 21:32:56 +0000 (21:32 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 5 May 2010 21:32:56 +0000 (21:32 +0000)
* cli-dump.c (dump_memory_to_file): Delete unused variable.
(restore_binary_file): Delete unused variable.
* cli-decode.c (deprecated_cmd_warning): Delete unused variables.
* cli-script.c (define_command): Delete unused variables.
(recurse_read_control_structure): Delete unused variable.
(script_from_file): Delete unused variable.
* cli-cmds.c (complete_command): Delete unused variable.
(disassemble_command): Delete unused variable.

gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-dump.c
gdb/cli/cli-script.c

index 0b7246ebc43ace690face3d2a7beaa066f253820..03cb37492f11d87e5696f94b13b7a4e6d322908f 100644 (file)
@@ -1,5 +1,28 @@
 2010-05-05  Michael Snyder  <msnyder@vmware.com>
 
+       * cli-dump.c (dump_memory_to_file): Delete unused variable.
+       (restore_binary_file): Delete unused variable.
+       * cli-decode.c (deprecated_cmd_warning): Delete unused variables.
+       * cli-script.c (define_command): Delete unused variables.
+       (recurse_read_control_structure): Delete unused variable.
+       (script_from_file): Delete unused variable.
+       * cli-cmds.c (complete_command): Delete unused variable.
+       (disassemble_command): Delete unused variable.
+
+       * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
+       * tracepoint.c (delete_trace_variable_command): 
+       Delete unused variables.
+       (encode_actions_1): Delete unused variables.
+       (start_tracing): Delete unused variable.
+       (trace_status_mi): Delete unused variable.
+       (tfind_1): Delete unused variable.
+       (trace_find_pc_command): Delete unused variable.
+       (trace_find_line_command): Delete unused variables.
+       (trace_find_range_command): Delete unused variables.
+       (trace_find_outside_command): Delete unused variables.
+       (parse_tracepoint_definition): Delete unused variables.
+       (tfile_fetch_registers): Delete unused variable.
+
        * dcache.c (dcache_init): Delete unused variable.
        (dcache_info): Delete unused variable.
 
index fdeb8dbe8a4d0808ddbd22d066c6e1255868f771..6b2064b75839f406fbd68bae3ce315c6bff2e4bb 100644 (file)
@@ -255,7 +255,6 @@ compare_strings (const void *arg1, const void *arg2)
 static void
 complete_command (char *arg, int from_tty)
 {
-  int i;
   int argpoint;
   char **completions, *point, *arg_prefix;
 
@@ -1117,7 +1116,7 @@ disassemble_command (char *arg, int from_tty)
   struct gdbarch *gdbarch = get_current_arch ();
   CORE_ADDR low, high;
   char *name;
-  CORE_ADDR pc, pc_masked;
+  CORE_ADDR pc;
   int flags;
 
   name = NULL;
index 1655e0a99c5eb46102ac9a2d3b95373c7f08b60a..259163a4f08db5a581b1be1b7b1e286d1130a43b 100644 (file)
@@ -1422,8 +1422,6 @@ deprecated_cmd_warning (char **text)
   struct cmd_list_element *alias = NULL;
   struct cmd_list_element *prefix_cmd = NULL;
   struct cmd_list_element *cmd = NULL;
-  struct cmd_list_element *c;
-  char *type;
 
   if (!lookup_cmd_composition (*text, &alias, &prefix_cmd, &cmd))
     /* return if text doesn't evaluate to a command */
index bce42f393e77191fdaf1e7ffb8f4c1832037fd70..fabca563de9d23095604beb164d93f57464328df 100644 (file)
@@ -223,7 +223,6 @@ dump_memory_to_file (char *cmd, char *mode, char *file_format)
   void *buf;
   char *lo_exp;
   char *hi_exp;
-  int len;
 
   /* Open the file.  */
   filename = scan_filename_with_cleanup (&cmd, NULL);
@@ -513,7 +512,6 @@ static void
 restore_binary_file (char *filename, struct callback_data *data)
 {
   FILE *file = fopen_with_cleanup (filename, FOPEN_RB);
-  int status;
   gdb_byte *buf;
   long len;
 
index 198966fc0c8ae62c8d8820041a5b1292f287a8da..95dc5679c2fe4e1e4e65c56e8f25f075d69e5a69 100644 (file)
@@ -1047,7 +1047,6 @@ recurse_read_control_structure (char * (*read_next_line_func) (void),
   enum misc_command_type val;
   enum command_control_type ret;
   struct command_line **body_ptr, *child_tail, *next;
-  char *p;
 
   child_tail = NULL;
   current_body = 1;
@@ -1408,8 +1407,8 @@ define_command (char *comname, int from_tty)
       CMD_POST_HOOK
     };
   struct command_line *cmds;
-  struct cmd_list_element *c, *newc, *oldc, *hookc = 0, **list;
-  char *tem, *tem2, *comfull;
+  struct cmd_list_element *c, *newc, *hookc = 0, **list;
+  char *tem, *comfull;
   char tmpbuf[MAX_TMPBUF];
   int  hook_type      = CMD_NO_HOOK;
   int  hook_name_size = 0;
@@ -1588,7 +1587,6 @@ script_from_file (FILE *stream, const char *file)
 {
   struct cleanup *old_cleanups;
   struct source_cleanup_lines_args old_lines;
-  int needed_length;
 
   if (stream == NULL)
     internal_error (__FILE__, __LINE__, _("called with NULL file pointer!"));