This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [gdb-remote] Sync vFile:open mode constants with GDB
ClosedPublic

Authored by mgorny on Jul 28 2021, 12:37 PM.

Details

Summary

Sync the mode constants used to drive vFile:open requests with these
used by GDB and defined for the gdb remote protocol. This makes it
possible to use 'platform file open' after connecting to gdbremote
server (and to some degree to operate on the open file modulo other
incompatibilities).

Diff Detail

Event Timeline

mgorny requested review of this revision.Jul 28 2021, 12:37 PM
mgorny created this revision.
mgorny updated this revision to Diff 362521.Jul 28 2021, 1:40 PM

Add a test for correct flag encoding.

jasonmolenda accepted this revision.Jul 28 2021, 1:51 PM

Thanks for fixing this, it's long overdue. For a long time I thought we'd need to operate in a compatibility mode to accept either set of constants, but I finally realized I was wrong and we should just align ourselves with the correct gdb behavior, but hadn't made the change myself yet.

This revision is now accepted and ready to land.Jul 28 2021, 1:51 PM
mgorny updated this revision to Diff 362729.Jul 29 2021, 5:34 AM

Removed obsolete FIXME from server as well.

mgorny added a comment.Aug 1 2021, 5:42 AM

@jasonmolenda, thanks for the review. Could you also look at D106984 which is a prerequisite for this?

This revision was landed with ongoing or failed builds.Aug 9 2021, 3:35 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2021, 3:35 AM