aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/target.c')
-rw-r--r--gdb/gdbserver/target.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c
index 5525b1f..14999e6 100644
--- a/gdb/gdbserver/target.c
+++ b/gdb/gdbserver/target.c
@@ -20,8 +20,6 @@
#include "server.h"
#include "tracepoint.h"
-#include "target/target-utils.h"
-#include <fcntl.h>
struct target_ops *the_target;
@@ -220,37 +218,3 @@ kill_inferior (int pid)
return (*the_target->kill) (pid);
}
-
-static int
-target_fileio_read_stralloc_1_pread (int handle, gdb_byte *read_buf, int len,
- ULONGEST offset, int *target_errno)
-{
- int retval = pread (handle, read_buf, len, offset);
-
- *target_errno = errno;
- return retval;
-}
-
-static LONGEST
-target_fileio_read_stralloc_1 (struct inferior *inf, const char *filename,
- gdb_byte **buf_p, int padding)
-{
- int fd;
- LONGEST retval;
-
- fd = open (filename, O_RDONLY);
- if (fd == -1)
- return -1;
-
- retval = read_alloc (buf_p, fd, target_fileio_read_stralloc_1_pread, padding);
-
- close (fd);
-
- return retval;
-}
-
-char *
-target_fileio_read_stralloc (struct inferior *inf, const char *filename)
-{
- return read_stralloc (inf, filename, target_fileio_read_stralloc_1);
-}