diff options
author | Gary Benson <gbenson@redhat.com> | 2015-04-09 10:28:05 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-04-09 13:26:32 +0100 |
commit | b88bb45061e0095a0bafce938363f3051a602dd2 (patch) | |
tree | 6211b8640d4fdd7ab03a6db48a0e38cf239f9f77 /gdb/p-lang.c | |
parent | 2f2680f33a356115fb31c932d3b983fcae89902f (diff) | |
download | gdb-b88bb45061e0095a0bafce938363f3051a602dd2.zip gdb-b88bb45061e0095a0bafce938363f3051a602dd2.tar.gz gdb-b88bb45061e0095a0bafce938363f3051a602dd2.tar.bz2 |
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.
Diffstat (limited to 'gdb/p-lang.c')
0 files changed, 0 insertions, 0 deletions