* ser-mingw.c: Include "command.h".
authorPedro Alves <palves@redhat.com>
Thu, 9 Oct 2008 01:14:26 +0000 (01:14 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 9 Oct 2008 01:14:26 +0000 (01:14 +0000)
(pipe_windows_open): Declare locals at the beginning of the scope.

gdb/ChangeLog
gdb/ser-mingw.c

index 270a4010724322d4da7853fa4ceda42b3f662508..174d63e5b14f9539676196d44e0754d2201fbbcc 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * ser-mingw.c: Include "command.h".
+       (pipe_windows_open): Declare locals at the beginning of the scope.
+
 2008-10-08  Pedro Alves  <pedro@codesourcery.com>
 
        * remote.c (struct remote_state) <waiting_for_stop_reply>: New
index 6a883aa19a39a95e7ecd9385ef8de791077e17ad..99612dfc6f8565fdc1b6d9dea17fae0ee0f5bab2 100644 (file)
@@ -32,6 +32,8 @@
 #include "gdb_assert.h"
 #include "gdb_string.h"
 
+#include "command.h"
+
 void _initialize_ser_windows (void);
 
 struct ser_windows_state
@@ -817,12 +819,14 @@ pipe_windows_open (struct serial *scb, const char *name)
 {
   struct pipe_state *ps;
   FILE *pex_stderr;
+  char **argv;
+  struct cleanup *back_to;
 
   if (name == NULL)
     error_no_arg (_("child command"));
 
-  char **argv = gdb_buildargv (name);
-  struct cleanup *back_to = make_cleanup_freeargv (argv);
+  argv = gdb_buildargv (name);
+  back_to = make_cleanup_freeargv (argv);
 
   if (! argv[0] || argv[0][0] == '\0')
     error ("missing child command");
This page took 0.03941 seconds and 4 git commands to generate.