gdbsupport: move fileio_errno_to_host to fileio.{h,cc} and rename
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 29 Aug 2022 16:19:40 +0000 (12:19 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 21 Sep 2022 18:11:03 +0000 (14:11 -0400)
commit517a63c2c48e5aaabe57de079e2d7f0bea09429b
tree2042e8a1a578cf61c31a257ab71c5bdaea2c9f32
parentb872057a63c53106e4bf6033a52d53b988f30dfd
gdbsupport: move fileio_errno_to_host to fileio.{h,cc} and rename

gdb_bfd.c and remote.c contain identical implementations of a
fileio_error -> errno function.  Factor that out to
gdbsupport/fileio.{h,cc}.

Rename it fileio_error_to_host, for symmetry with host_to_fileio_error.

Change-Id: Ib9b8807683de2f809c94a5303e708acc2251a0df
gdb/gdb_bfd.c
gdb/remote.c
gdbsupport/fileio.cc
gdbsupport/fileio.h