[all-commits] [llvm/llvm-project] bf3ac9: [lldb] Apply gdb-remote timeout to platform connec...

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Mar 4 05:46:26 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf3ac994c4d526b74044a977176e8e07d83f2049
      https://github.com/llvm/llvm-project/commit/bf3ac994c4d526b74044a977176e8e07d83f2049
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2021-03-04 (Thu, 04 Mar 2021)

  Changed paths:
    M lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
    M lldb/test/API/commands/platform/connect/TestPlatformConnect.py
    M lldb/test/API/functionalities/gdb_remote_client/TestPlatformClient.py

  Log Message:
  -----------
  [lldb] Apply gdb-remote timeout to platform connections as well

We have a plugin.process.gdb-remote.packet-timeout setting, which can be
used to control how long the lldb client is willing to wait before
declaring the server side dead. Our test suite makes use of this
feature, and sets the setting value fairly high, as the low default
value can cause flaky tests, particularly on slower bots.

After fixing TestPlatformConnect (one of the few tests exercising the
remote platform capabilities of lldb) in 4b284b9ca, it immediately
started being flaky on the arm bots. It turns out this is because the
packet-timeout setting is not being applied to platform connections.

This patch makes the platform connections also respect the value of this
setting. It also adds a test which checks that the timeout value is
being honored.

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




More information about the All-commits mailing list