projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[platform/upstream/binutils.git]
/
gdb
/
remote-fileio.c
diff --git
a/gdb/remote-fileio.c
b/gdb/remote-fileio.c
index
ee43dd6
..
451c3b1
100644
(file)
--- a/
gdb/remote-fileio.c
+++ b/
gdb/remote-fileio.c
@@
-1,6
+1,6
@@
/* Remote File-I/O communications
/* Remote File-I/O communications
- Copyright (C) 2003
, 2005-2012
Free Software Foundation, Inc.
+ Copyright (C) 2003
-2014
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-20,17
+20,16
@@
/* See the GDB User Guide for details of the GDB remote protocol. */
#include "defs.h"
/* See the GDB User Guide for details of the GDB remote protocol. */
#include "defs.h"
-#include "gdb_string.h"
#include "gdbcmd.h"
#include "remote.h"
#include "gdb/fileio.h"
#include "gdb_wait.h"
#include "gdbcmd.h"
#include "remote.h"
#include "gdb/fileio.h"
#include "gdb_wait.h"
-#include "gdb_stat.h"
-#include "exceptions.h"
+#include <sys/stat.h>
#include "remote-fileio.h"
#include "event-loop.h"
#include "target.h"
#include "filenames.h"
#include "remote-fileio.h"
#include "event-loop.h"
#include "target.h"
#include "filenames.h"
+#include "filestuff.h"
#include <fcntl.h>
#include <sys/time.h>
#include <fcntl.h>
#include <sys/time.h>
@@
-512,7
+511,7
@@
remote_fileio_sig_exit (void)
static void
async_remote_fileio_interrupt (gdb_client_data arg)
{
static void
async_remote_fileio_interrupt (gdb_client_data arg)
{
-
deprecated_throw_reason (RETURN_QUIT
);
+
quit (
);
}
static void
}
static void
@@
-639,7
+638,7
@@
remote_fileio_func_open (char *buf)
}
remote_fio_no_longjmp = 1;
}
remote_fio_no_longjmp = 1;
- fd =
open
(pathname, flags, mode);
+ fd =
gdb_open_cloexec
(pathname, flags, mode);
if (fd < 0)
{
remote_fileio_return_errno (-1);
if (fd < 0)
{
remote_fileio_return_errno (-1);
@@
-682,7
+681,7
@@
remote_fileio_func_read (char *buf)
long target_fd, num;
LONGEST lnum;
CORE_ADDR ptrval;
long target_fd, num;
LONGEST lnum;
CORE_ADDR ptrval;
- int fd, ret
, retlength
;
+ int fd, ret;
gdb_byte *buffer;
size_t length;
off_t old_offset, new_offset;
gdb_byte *buffer;
size_t length;
off_t old_offset, new_offset;
@@
-1133,7
+1132,7
@@
static void
remote_fileio_func_fstat (char *buf)
{
CORE_ADDR ptrval;
remote_fileio_func_fstat (char *buf)
{
CORE_ADDR ptrval;
- int fd, ret
, retlength
;
+ int fd, ret;
long target_fd;
LONGEST lnum;
struct stat st;
long target_fd;
LONGEST lnum;
struct stat st;
@@
-1212,7
+1211,7
@@
remote_fileio_func_gettimeofday (char *buf)
{
LONGEST lnum;
CORE_ADDR ptrval;
{
LONGEST lnum;
CORE_ADDR ptrval;
- int ret
, retlength
;
+ int ret;
struct timeval tv;
struct fio_timeval ftv;
struct timeval tv;
struct fio_timeval ftv;
@@
-1281,7
+1280,7
@@
static void
remote_fileio_func_system (char *buf)
{
CORE_ADDR ptrval;
remote_fileio_func_system (char *buf)
{
CORE_ADDR ptrval;
- int ret, length
, retlength
;
+ int ret, length;
char *cmdline = NULL;
/* Parameter: Ptr to commandline / length incl. trailing zero */
char *cmdline = NULL;
/* Parameter: Ptr to commandline / length incl. trailing zero */