[all-commits] [llvm/llvm-project] 33c0f9: [lldb/test] Move gdb client utils into the package...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Nov 16 02:38:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33c0f93f6c10acff885fe11b9897943313cd5c26
      https://github.com/llvm/llvm-project/commit/33c0f93f6c10acff885fe11b9897943313cd5c26
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    A lldb/packages/Python/lldbsuite/test/gdbclientutils.py
    A lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
    M lldb/test/API/functionalities/gdb_remote_client/TestAArch64XMLRegOffsets.py
    M lldb/test/API/functionalities/gdb_remote_client/TestArmRegisterDefinition.py
    M lldb/test/API/functionalities/gdb_remote_client/TestFork.py
    M lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
    M lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteDiskFileCompletion.py
    M lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteLoad.py
    M lldb/test/API/functionalities/gdb_remote_client/TestGDBRemotePlatformFile.py
    M lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py
    M lldb/test/API/functionalities/gdb_remote_client/TestIOSSimulator.py
    M lldb/test/API/functionalities/gdb_remote_client/TestJLink6Armv7RegisterDefinition.py
    M lldb/test/API/functionalities/gdb_remote_client/TestMemoryRegionDirtyPages.py
    M lldb/test/API/functionalities/gdb_remote_client/TestMultiprocess.py
    M lldb/test/API/functionalities/gdb_remote_client/TestNestedRegDefinitions.py
    M lldb/test/API/functionalities/gdb_remote_client/TestNoGPacketSupported.py
    M lldb/test/API/functionalities/gdb_remote_client/TestNoWatchpointSupportInfo.py
    M lldb/test/API/functionalities/gdb_remote_client/TestPartialGPacket.py
    M lldb/test/API/functionalities/gdb_remote_client/TestPlatformClient.py
    M lldb/test/API/functionalities/gdb_remote_client/TestPlatformKill.py
    M lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py
    M lldb/test/API/functionalities/gdb_remote_client/TestPty.py
    M lldb/test/API/functionalities/gdb_remote_client/TestQemuAArch64TargetXml.py
    M lldb/test/API/functionalities/gdb_remote_client/TestRecognizeBreakpoint.py
    M lldb/test/API/functionalities/gdb_remote_client/TestRegDefinitionInParts.py
    M lldb/test/API/functionalities/gdb_remote_client/TestRemoteRegNums.py
    M lldb/test/API/functionalities/gdb_remote_client/TestRestartBug.py
    M lldb/test/API/functionalities/gdb_remote_client/TestStopPCs.py
    M lldb/test/API/functionalities/gdb_remote_client/TestTargetXMLArch.py
    M lldb/test/API/functionalities/gdb_remote_client/TestThreadInfoTrailingComma.py
    M lldb/test/API/functionalities/gdb_remote_client/TestThreadSelectionBug.py
    M lldb/test/API/functionalities/gdb_remote_client/TestWasm.py
    M lldb/test/API/functionalities/gdb_remote_client/TestWriteMemory.py
    M lldb/test/API/functionalities/gdb_remote_client/TestqOffsets.py
    R lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py

  Log Message:
  -----------
  [lldb/test] Move gdb client utils into the packages tree

This infrastructure has proven proven its worth, so give it a more
prominent place.

My immediate motivation for this is the desire to reuse this
infrastructure for qemu platform testing, but I believe this move makes
sense independently of that. Moving this code to the packages tree will
allow as to add more structure to the gdb client tests -- currently they
are all crammed into the same test folder as that was the only way they
could access this code.

I'm splitting the code into two parts while moving it. The first once
contains just the generic gdb protocol wrappers, while the other one
contains the unit test glue. The reason for that is that for qemu
testing, I need to run the gdb code in a separate process, so I will
only be using the first part there.

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




More information about the All-commits mailing list