[lldb] [gdb-remote] Use standardized GDB errno values
authorMichał Górny <mgorny@moritz.systems>
Mon, 16 Aug 2021 17:33:07 +0000 (19:33 +0200)
committerMichał Górny <mgorny@moritz.systems>
Fri, 10 Sep 2021 12:08:36 +0000 (14:08 +0200)
commit3d3017d344f6514bbb2e5ff49a335d36e31faf55
treedcef5b537d840f6bcc30f7e1666c22f7ae353971
parent3fade9542200c96021522f91ba5afdbff02729e1
[lldb] [gdb-remote] Use standardized GDB errno values

GDB uses normalized errno values for vFile errors.  Implement
the translation between them and system errno values in the gdb-remote
plugin.

Differential Revision: https://reviews.llvm.org/D108148
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteErrno.def [new file with mode: 0644]
lldb/test/API/functionalities/gdb_remote_client/TestGDBRemotePlatformFile.py