diff options
Diffstat (limited to 'gdb/gdb_bfd.c')
-rw-r--r-- | gdb/gdb_bfd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index 7631e27..1438815 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -306,7 +306,7 @@ gdb_bfd_open_from_target_memory (CORE_ADDR addr, ULONGEST size, /* Return the system error number corresponding to ERRNUM. */ static int -fileio_errno_to_host (int errnum) +fileio_errno_to_host (fileio_error errnum) { switch (errnum) { @@ -370,7 +370,8 @@ static void * gdb_bfd_iovec_fileio_open (struct bfd *abfd, void *open_closure) { const char *filename = bfd_get_filename (abfd); - int fd, target_errno; + int fd; + fileio_error target_errno; int *stream; gdb_bfd_open_closure *oclosure = (gdb_bfd_open_closure *) open_closure; @@ -400,7 +401,7 @@ gdb_bfd_iovec_fileio_pread (struct bfd *abfd, void *stream, void *buf, file_ptr nbytes, file_ptr offset) { int fd = *(int *) stream; - int target_errno; + fileio_error target_errno; file_ptr pos, bytes; pos = 0; @@ -443,7 +444,7 @@ static int gdb_bfd_iovec_fileio_close (struct bfd *abfd, void *stream) { int fd = *(int *) stream; - int target_errno; + fileio_error target_errno; xfree (stream); @@ -472,7 +473,7 @@ gdb_bfd_iovec_fileio_fstat (struct bfd *abfd, void *stream, struct stat *sb) { int fd = *(int *) stream; - int target_errno; + fileio_error target_errno; int result; result = target_fileio_fstat (fd, sb, &target_errno); |