mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* ser-mingw.c: Include "command.h".
(pipe_windows_open): Declare locals at the beginning of the scope.
This commit is contained in:
parent
066ee829b9
commit
efdb2a86e4
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user