[Lldb-commits] [PATCH] D107809: [lldb] Add new commands and tests for getting file perms & exists

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 8 01:05:18 PDT 2021


labath added inline comments.


================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp:661-664
+    if (mode != llvm::sys::fs::perms_not_known)
+      response.Printf("F%x", mode);
+    else
+      response.Printf("F-1,%x", (int)Status(ec).GetError());
----------------
mgorny wrote:
> labath wrote:
> > Unless I'm mistaken, the test does not actually run this code (as it tests the client bits).
> Yes, this is the case. Adding tests for the server is a bit out of scope for what I'm working on.
Why is that? You did have them in the other patches I looked at...

Batching these changes in this way is particularly unfortunate because a casual observer might conclude that you actualy _are_ including a test for the bug you've fixed.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107809/new/

https://reviews.llvm.org/D107809



More information about the lldb-commits mailing list