================ @@ -0,0 +1,142 @@ +""" +Test lldb-dap "port" configuration to "attach" request +""" + + +import dap_server +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil +from lldbsuite.test import lldbplatformutil +import lldbgdbserverutils +import lldbdap_testcase +import os +import shutil +import subprocess +import tempfile +import threading +import time +import sys +import socket + + +class TestDAP_attachByPortNum(lldbdap_testcase.DAPTestCaseBase): + def get_free_port(self): + s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + s.bind(("", 0)) + port = s.getsockname()[1] + s.close() + return port ---------------- santhoshe447 wrote:
I referred to your previous review comments and made these changes. Instead of using a hardcoded same port number, I used an available free port number to attach. If my understanding is incorrect, could you please clarify whether you mean to use a random port number? Additional information would be helpful to make the necessary changes. https://github.com/llvm/llvm-project/pull/91570 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits