aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-10-09 01:14:26 +0000
committerPedro Alves <palves@redhat.com>2008-10-09 01:14:26 +0000
commitefdb2a86e46122879fab082916287486d5208b41 (patch)
treed4671e67348489d8a1d48a6defdbd680b1f03066 /gdb
parent066ee829b9ac6c058fc8466e79fa2b3603b56884 (diff)
downloadgdb-efdb2a86e46122879fab082916287486d5208b41.zip
gdb-efdb2a86e46122879fab082916287486d5208b41.tar.gz
gdb-efdb2a86e46122879fab082916287486d5208b41.tar.bz2
* ser-mingw.c: Include "command.h".
(pipe_windows_open): Declare locals at the beginning of the scope.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ser-mingw.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 270a401..174d63e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c
index 6a883aa..99612df 100644
--- a/gdb/ser-mingw.c
+++ b/gdb/ser-mingw.c
@@ -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");