gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 28 Aug 2011 20:43:43 +0000 (20:43 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 28 Aug 2011 20:43:43 +0000 (20:43 +0000)
Code cleanup.
* mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
and the static keyword.
* mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
Make prefix an array.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
* mi/mi-main.c (get_register): Remove stb initialization and the static
keyword.

gdb/ChangeLog
gdb/mi/mi-cmd-stack.c
gdb/mi/mi-cmd-target.c
gdb/mi/mi-main.c

index 6e77fcc89f598f85e121e5e78f1af5a6bd25508e..790191074c55620ed1259ae4d06f0ea1af5e2f81 100644 (file)
@@ -1,3 +1,14 @@
+2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
+       and the static keyword.
+       * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
+       Make prefix an array.
+       * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
+       * mi/mi-main.c (get_register): Remove stb initialization and the static
+       keyword.
+
 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Code cleanup - make mi_opt const.
index ccd6b04afc16a00d8df4e2f75bb61925bd848f20..3ccdeaea7c45119b1558db60980e324ea4c2a484 100644 (file)
@@ -247,7 +247,7 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
   struct symbol *sym;
   struct dict_iterator iter;
   struct cleanup *cleanup_list;
-  static struct ui_stream *stb = NULL;
+  struct ui_stream *stb;
   struct type *type;
   char *name_of_result;
   struct ui_out *uiout = current_uiout;
index 14b22deb24c36a08a92c36567855ddc9d731fcdb..5f18365d3bf00fa191f89767cc55b235f0eed84c 100644 (file)
@@ -33,7 +33,7 @@ mi_cmd_target_file_get (char *command, char **argv, int argc)
   {
     { 0, 0, 0 }
   };
-  static const char *prefix = "-target-file-get";
+  static const char prefix[] = "-target-file-get";
 
   if (mi_getopt (prefix, argc, argv, opts, &optind, &optarg) != -1
       || optind != argc - 2)
@@ -57,7 +57,7 @@ mi_cmd_target_file_put (char *command, char **argv, int argc)
   {
     { 0, 0, 0 }
   };
-  static const char *prefix = "-target-file-put";
+  static const char prefix[] = "-target-file-put";
 
   if (mi_getopt (prefix, argc, argv, opts, &optind, &optarg) != -1
       || optind != argc - 2)
@@ -81,7 +81,7 @@ mi_cmd_target_file_delete (char *command, char **argv, int argc)
   {
     { 0, 0, 0 }
   };
-  static const char *prefix = "-target-file-delete";
+  static const char prefix[] = "-target-file-delete";
 
   if (mi_getopt (prefix, argc, argv, opts, &optind, &optarg) != -1
       || optind != argc - 1)
index 7a9b4db80e247417fbd886d7c9666d71db834bde..59fa5764a6898b12cc5f11372273521549a1f6da 100644 (file)
@@ -1119,7 +1119,7 @@ get_register (struct frame_info *frame, int regnum, int format)
   struct ui_out *uiout = current_uiout;
   CORE_ADDR addr;
   enum lval_type lval;
-  static struct ui_stream *stb = NULL;
+  struct ui_stream *stb;
   struct value *val;
 
   stb = ui_out_stream_new (uiout);
This page took 0.03142 seconds and 4 git commands to generate.