2010-05-06 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 6 May 2010 19:41:12 +0000 (19:41 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 6 May 2010 19:41:12 +0000 (19:41 +0000)
* macrocmd.c (_initialize_macrocmd): Delete unused variable.
* macroexp.c (gather_arguments): Delete unused variable.
(substitute_args): Delete unused variable.
* completer.c (gdb_completer_loc_break_characters): Unused, delete.
* gdbarch.sh (gdbarch_printable_names): Delete unused variable.
(_initialize_gdbarch): Delete unused variable.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (initialize_current_architecture):
Delete unused variable.
(_initialize_gdbarch_utils): Delete unused variable.
* gdbtypes.c (make_cv_type): Delete unused variable.
(make_type_with_address_space): Delete unused variable.

gdb/ChangeLog
gdb/arch-utils.c
gdb/completer.c
gdb/gdbarch.c
gdb/gdbarch.sh
gdb/gdbtypes.c
gdb/macrocmd.c
gdb/macroexp.c

index 5955cd15fdcdc61549a9feb26b7e0dbb54e275d8..1962b154c49a18ed68ff73f792bd96ecc4319014 100644 (file)
@@ -1,5 +1,18 @@
 2010-05-06  Michael Snyder  <msnyder@vmware.com>
 
+       * macrocmd.c (_initialize_macrocmd): Delete unused variable.
+       * macroexp.c (gather_arguments): Delete unused variable.
+       (substitute_args): Delete unused variable.
+       * completer.c (gdb_completer_loc_break_characters): Unused, delete.
+       * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
+       (_initialize_gdbarch): Delete unused variable.
+       * gdbarch.c, gdbarch.h: Regenerate.
+       * arch-utils.c (initialize_current_architecture): 
+       Delete unused variable.
+       (_initialize_gdbarch_utils): Delete unused variable.
+       * gdbtypes.c (make_cv_type): Delete unused variable.
+       (make_type_with_address_space): Delete unused variable.
+
        * linespec.c (decode_compound): Delete unused variable.
        * dictionary.c (iterator_next_hashed): Delete unused variable.
        * infcall.c (call_function_by_hand): Delete unused variable.
index 765312d8c45a6661ee47d63810091f8cac64814f..b560175d3749eb7de73fde3c5f18c9ffbce69c52 100644 (file)
@@ -652,7 +652,6 @@ initialize_current_architecture (void)
   /* Create the ``set architecture'' command appending ``auto'' to the
      list of architectures. */
   {
-    struct cmd_list_element *c;
     /* Append ``auto''. */
     int nr;
     for (nr = 0; arches[nr] != NULL; nr++);
@@ -790,7 +789,6 @@ extern initialize_file_ftype _initialize_gdbarch_utils; /* -Wmissing-prototypes
 void
 _initialize_gdbarch_utils (void)
 {
-  struct cmd_list_element *c;
   add_setshow_enum_cmd ("endian", class_support,
                        endian_enum, &set_endian_string, _("\
 Set endianness of target."), _("\
index e678fb1b20cdef487ffcd100d3ff190e5c1ed80b..a095be0348b00bac23ff7f5536231fb67d223961 100644 (file)
@@ -79,10 +79,6 @@ static char *gdb_completer_file_name_break_characters = " \t\n*|\"';?><@";
 static char *gdb_completer_file_name_break_characters = " \t\n*|\"';:?><";
 #endif
 
-/* These are used when completing on locations, which can mix file
-   names and symbol names separated by a colon.  */
-static char *gdb_completer_loc_break_characters = " \t\n*|\"';:?><,";
-
 /* Characters that can be used to quote completion strings.  Note that we
    can't include '"' because the gdb C parser treats such quoted sequences
    as strings.  */
index fa08fe02c40c28243a8982488e2b9a71ecfbf8be..3b6f614ca6b8c4a2ff4deb7c7ba1714a5070bdfa 100644 (file)
@@ -3849,7 +3849,6 @@ gdbarch_printable_names (void)
 {
   /* Accumulate a list of names based on the registed list of
      architectures. */
-  enum bfd_architecture a;
   int nr_arches = 0;
   const char **arches = NULL;
   struct gdbarch_registration *rego;
@@ -4084,8 +4083,6 @@ extern void _initialize_gdbarch (void);
 void
 _initialize_gdbarch (void)
 {
-  struct cmd_list_element *c;
-
   add_setshow_zinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\
 Set architecture debugging."), _("\
 Show architecture debugging."), _("\
index 121ca7c40c7242df5927cd16c1a051575da9abd9..81c5dc23655f928836fb615fc7a934b73dc420a7 100755 (executable)
@@ -1866,7 +1866,6 @@ gdbarch_printable_names (void)
 {
   /* Accumulate a list of names based on the registed list of
      architectures. */
-  enum bfd_architecture a;
   int nr_arches = 0;
   const char **arches = NULL;
   struct gdbarch_registration *rego;
@@ -2101,8 +2100,6 @@ extern void _initialize_gdbarch (void);
 void
 _initialize_gdbarch (void)
 {
-  struct cmd_list_element *c;
-
   add_setshow_zinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\\
 Set architecture debugging."), _("\\
 Show architecture debugging."), _("\\
index a40b717a8cbde18831eeeaf407fcd940349944f0..cf23f173f6582d64be6cc5ad7c72ec2730f870c8 100644 (file)
@@ -540,7 +540,6 @@ make_qualified_type (struct type *type, int new_flags,
 struct type *
 make_type_with_address_space (struct type *type, int space_flag)
 {
-  struct type *ntype;
   int new_flags = ((TYPE_INSTANCE_FLAGS (type)
                    & ~(TYPE_INSTANCE_FLAG_CODE_SPACE
                        | TYPE_INSTANCE_FLAG_DATA_SPACE
@@ -567,11 +566,10 @@ make_cv_type (int cnst, int voltl,
              struct type **typeptr)
 {
   struct type *ntype;  /* New type */
-  struct type *tmp_type = type;        /* tmp type */
-  struct objfile *objfile;
 
   int new_flags = (TYPE_INSTANCE_FLAGS (type)
-                  & ~(TYPE_INSTANCE_FLAG_CONST | TYPE_INSTANCE_FLAG_VOLATILE));
+                  & ~(TYPE_INSTANCE_FLAG_CONST 
+                      | TYPE_INSTANCE_FLAG_VOLATILE));
 
   if (cnst)
     new_flags |= TYPE_INSTANCE_FLAG_CONST;
index bbf64b5049dfa18d0d20de92066982dc8e23d69e..eab815b64a0154c007a0c0aabdfed1263d0f04ba 100644 (file)
@@ -387,8 +387,6 @@ extern initialize_file_ftype _initialize_macrocmd; /* -Wmissing-prototypes */
 void
 _initialize_macrocmd (void)
 {
-  struct cmd_list_element *c;
-
   /* We introduce a new command prefix, `macro', under which we'll put
      the various commands for working with preprocessor macros.  */
   add_prefix_cmd ("macro", class_info, macro_command,
index 050fbbf13afe051a3c3c8d9e6299c075b7a45cb1..0bd65f6efaa5bde90a9519cea6b5ba40089f081f 100644 (file)
@@ -805,8 +805,6 @@ gather_arguments (const char *name, struct macro_buffer *src,
       depth = 0;
       for (;;)
         {
-          char *start = src->text;
-
           if (! get_token (&tok, src))
             error (_("Malformed argument list for macro `%s'."), name);
       
@@ -1004,7 +1002,7 @@ substitute_args (struct macro_buffer *dest,
               && lookahead.text[0] == '#'
               && lookahead.text[1] == '#')
        {
-         int arg, finished = 0;
+         int finished = 0;
          int prev_was_comma = 0;
 
          /* Note that GCC warns if the result of splicing is not a