[all-commits] [llvm/llvm-project] ff31af: [lldb] [gdb-remote client] Refactor handling qSupp...

Michał Górny via All-commits all-commits at lists.llvm.org
Tue Apr 13 02:21:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff31af4f55af65d173cedcd2f09063c81c8f4f12
      https://github.com/llvm/llvm-project/commit/ff31af4f55af65d173cedcd2f09063c81c8f4f12
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h

  Log Message:
  -----------
  [lldb] [gdb-remote client] Refactor handling qSupported

Refactor the qSupported handler to split the reply into an array,
and identify features within the array rather than searching the string
for partial matches.  While at it, use StringRef.split() to process
the compression list instead of reinventing the wheel.

Switch the arguments to MaybeEnableCompression() to use an ArrayRef
of StringRefs to simplify parameter passing from GetRemoteQSupported().

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




More information about the All-commits mailing list