Remove process_stratum_target::hostio_last_error abstraction
authorPedro Alves <pedro@palves.net>
Mon, 12 Apr 2021 19:23:54 +0000 (20:23 +0100)
committerPedro Alves <pedro@palves.net>
Tue, 13 Apr 2021 12:26:44 +0000 (13:26 +0100)
commit0256da25c04a5f797ccb210b2cb05a3fdb084495
treed1d2022c34315bec94f050df771e369e6fef8b00
parentd2f1139ef0c006f35210fac76cb034cfe8d57c2e
Remove process_stratum_target::hostio_last_error abstraction

Now that the WinCE port is gone, all ports map host I/O errors from
errno, so this abstraction is no longer necessary.

Basically undoes:
  https://sourceware.org/pipermail/gdb-patches/2008-January/055511.html
  https://sourceware.org/pipermail/gdb-patches/attachments/20080131/f44e7012/attachment.bin

gdbserver/ChangeLog:

* Makefile.in (SFILES): Remove hostio-errno.cc.
* configure: Regenerate.
* configure.ac (GDBSERVER_DEPFILES): No longer add
$srv_hostio_err_objs.
* configure.srv (srv_hostio_err_objs): Delete.
* hostio-errno.cc: Delete.
* hostio.cc (hostio_error): Inline hostio_last_error_from_errno
here.
* hostio.h (hostio_last_error_from_errno): Delete.
* target.cc (process_stratum_target::hostio_last_error): Delete.
* target.h (class process_stratum_target) <hostio_last_error>:
Delete.
gdbserver/ChangeLog
gdbserver/Makefile.in
gdbserver/configure
gdbserver/configure.ac
gdbserver/configure.srv
gdbserver/hostio-errno.cc [deleted file]
gdbserver/hostio.cc
gdbserver/hostio.h
gdbserver/target.cc
gdbserver/target.h