[Lldb-commits] [lldb] r349316 - Add a description of the similar packets defined in the
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Sun Dec 16 10:44:55 PST 2018
Author: jmolenda
Date: Sun Dec 16 10:44:54 2018
New Revision: 349316
URL: http://llvm.org/viewvc/llvm-project?rev=349316&view=rev
Log:
Add a description of the similar packets defined in the
gdb-remote serial protocol documentation, call out the
incompatability of lldb's vFile:open: packet as it stands
today. Need to think about whether to change lldb's
enum values (breaking any existing lldb-server's out there)
or create a different packet and abandon vFile:open: at
least for a while.
Modified:
lldb/trunk/docs/lldb-platform-packets.txt
Modified: lldb/trunk/docs/lldb-platform-packets.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/docs/lldb-platform-packets.txt?rev=349316&r1=349315&r2=349316&view=diff
==============================================================================
--- lldb/trunk/docs/lldb-platform-packets.txt (original)
+++ lldb/trunk/docs/lldb-platform-packets.txt Sun Dec 16 10:44:54 2018
@@ -1,5 +1,15 @@
-Here is a brief overview of the packets that an lldb platform server needs to implement
-for the lldb testsuite to be run on a remote target device/system.
+Here is a brief overview of the packets that an lldb platform server
+needs to implement for the lldb testsuite to be run on a remote
+target device/system.
+
+These are almost all lldb extensions to the gdb-remote serial
+protocol. Many of the vFile: packets are described to the "Host
+I/O Packets" detailed in the gdb-remote protocol documentation,
+although the lldb platform extensions include packets that are not
+defined there (vFile:size:, vFile:mode:, vFile:symlink, vFile:chmod:).
+Most importantly, the flags that lldb passes to vFile:open: are
+incompatible with the flags that gdb specifies.
+
//----------------------------------------------------------------------
// QStartNoAckMode
@@ -311,7 +321,12 @@ for the lldb testsuite to be run on a re
//
// response is F followed by the opened file descriptor in base 10.
// "F-1,errno" with the errno if an error occurs.
-
+//
+// COMPATABILITY
+// The gdb-remote serial protocol documentatio defines a vFile:open:
+// packet which uses incompatible flag values, e.g. 1 means O_WRONLY
+// in gdb's vFile:open:, but it means eOpenOptionRead to lldb's
+// implementation.
//----------------------------------------------------------------------
// vFile:close:
More information about the lldb-commits
mailing list