]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbserver/ChangeLog
Introduce new shared function remote_fileio_to_fio_error
authorGary Benson <gbenson@redhat.com>
Thu, 9 Apr 2015 09:28:05 +0000 (10:28 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 9 Apr 2015 12:26:32 +0000 (13:26 +0100)
commitb88bb45061e0095a0bafce938363f3051a602dd2
tree6211b8640d4fdd7ab03a6db48a0e38cf239f9f77
parent2f2680f33a356115fb31c932d3b983fcae89902f
Introduce new shared function remote_fileio_to_fio_error

This commit introduces a new shared function to replace three
identical functions in various places in the codebase.

gdb/ChangeLog:

* common/common-remote-fileio.h (remote_fileio_to_fio_error):
New declaration.
* common/common-remote-fileio.c (remote_fileio_to_fio_error):
New function, factored out the named functions below.
* inf-child.c (gdb/fileio.h): Remove include.
(common-remote-fileio.h): New include.
(inf_child_errno_to_fileio_error): Remove function.  Update
all callers to use remote_fileio_to_fio_error.
* remote-fileio.c (remote_fileio_errno_to_target): Likewise.

gdb/gdbserver/ChangeLog:

* hostio-errno.c (errno_to_fileio_error): Remove function.
Update caller to use remote_fileio_to_fio_error.
gdb/ChangeLog
gdb/common/common-remote-fileio.c
gdb/common/common-remote-fileio.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/hostio-errno.c
gdb/inf-child.c
gdb/remote-fileio.c