[all-commits] [llvm/llvm-project] 21e2d7: [lldb] [gdb-remote] Implement fallback to vFile:st...

Michał Górny via All-commits all-commits at lists.llvm.org
Fri Sep 10 02:09:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21e2d7ce43c42df5d60a2805c801b8f1eda7919c
      https://github.com/llvm/llvm-project/commit/21e2d7ce43c42df5d60a2805c801b8f1eda7919c
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
    M lldb/test/API/functionalities/gdb_remote_client/TestGDBRemotePlatformFile.py

  Log Message:
  -----------
  [lldb] [gdb-remote] Implement fallback to vFile:stat for GetFileSize()

Implement a fallback to getting the file size via vFile:stat packet
when the remote server does not implement vFile:size.  This makes it
possible to query file sizes from remote gdbserver.

Note that unlike vFile:size, the fallback will not work if the server is
unable to open the file.

While at it, add a few tests for the 'platform get-size' command.

Differential Revision: https://reviews.llvm.org/D107780


  Commit: 9e886fbb18b525c080c04f4a12bd481c9aa849c0
      https://github.com/llvm/llvm-project/commit/9e886fbb18b525c080c04f4a12bd481c9aa849c0
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M lldb/include/lldb/Utility/StringExtractorGDBRemote.h
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.h
    M lldb/source/Utility/StringExtractorGDBRemote.cpp
    M lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py

  Log Message:
  -----------
  [lldb] [gdb-server] Implement the vFile:fstat packet

Differential Revision: https://reviews.llvm.org/D107840


Compare: https://github.com/llvm/llvm-project/compare/7d42eb3af779...9e886fbb18b5


More information about the All-commits mailing list