Skip to content

Commit 67e77f1

Browse files
andrurogerzcompnerd
authored andcommitted
properly support append mode with the vFile:open packet
30b6a55 missed adding support for append mode in `vFile:open`
1 parent db06c4a commit 67e77f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/GDBRemote/Session.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ OpenFlags Session::ConvertOpenFlags(uint32_t protocolFlags) {
273273
return kOpenFlagInvalid; // Invalid mode
274274
}
275275

276+
if (protocolFlags & 0x8)
277+
flags |= kOpenFlagAppend;
278+
276279
flags = flags
277280
| (protocolFlags & 0x200 ? kOpenFlagCreate : 0) // eOpenOptionCanCreate (O_CREAT)
278281
| (protocolFlags & 0x400 ? kOpenFlagTruncate : 0) // eOpenOptionTruncate (O_TRUNC)

0 commit comments

Comments
 (0)