Skip to content

Commit 616e8cc

Browse files
committed
Revert "[lldb] Use correct path for debugserver (#131609)"
This reverts commit a86f4ee and the fixup in 587206a because brakage on macos (TestAutoInstallMainExecutable.py).
1 parent dba8acd commit 616e8cc

File tree

2 files changed

+1
-50
lines changed

2 files changed

+1
-50
lines changed

lldb/test/API/commands/platform/launchgdbserver/TestPlatformLaunchGDBServer.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -58,45 +58,3 @@ def test_platform_process_launch_gdb_server(self):
5858

5959
self.runCmd("target create {}".format(self.getBuildArtifact("a.out")))
6060
self.expect("run", substrs=["unable to launch a GDB server on"], error=True)
61-
62-
@skipIfRemote
63-
@skipUnlessPlatform(["linux"])
64-
@add_test_categories(["lldb-server"])
65-
def test_lldb_server_weird_symlinks(self):
66-
self.build()
67-
68-
hostname = socket.getaddrinfo("localhost", 0, proto=socket.IPPROTO_TCP)[0][4][0]
69-
listen_url = "[%s]:0" % hostname
70-
71-
port_file = self.getBuildArtifact("port")
72-
commandline_args = [
73-
"platform",
74-
"--listen",
75-
listen_url,
76-
"--socket-file",
77-
port_file,
78-
]
79-
80-
# Run lldb-server from a symlink without any binary called "lldb-server" in the directory.
81-
new_lldb_server = self.getBuildArtifact(
82-
"lldb-server-with-an-unconventional-name"
83-
)
84-
os.symlink(lldbgdbserverutils.get_lldb_server_exe(), new_lldb_server)
85-
86-
proc = self.spawnSubprocess(new_lldb_server, commandline_args)
87-
socket_id = lldbutil.wait_for_file_on_target(self, port_file)
88-
89-
new_platform = lldb.SBPlatform("remote-" + self.getPlatform())
90-
self.dbg.SetSelectedPlatform(new_platform)
91-
92-
connect_url = "connect://[%s]:%s" % (hostname, socket_id)
93-
self.runCmd("platform connect %s" % connect_url)
94-
wd = self.getBuildArtifact("wd")
95-
self.assertSuccess(new_platform.MakeDirectory(wd))
96-
new_platform.SetWorkingDirectory(wd)
97-
self.runCmd("target create {}".format(self.getBuildArtifact("a.out")))
98-
self.runCmd("run")
99-
self.expect(
100-
"process status",
101-
patterns=["Process .* exited with status = 0"],
102-
)

lldb/tools/lldb-server/SystemInitializerLLGS.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@
1111

1212
#include "lldb/Initialization/SystemInitializer.h"
1313
#include "lldb/Initialization/SystemInitializerCommon.h"
14-
#include "lldb/Utility/FileSpec.h"
1514

1615
class SystemInitializerLLGS : public lldb_private::SystemInitializerCommon {
1716
public:
18-
SystemInitializerLLGS()
19-
: SystemInitializerCommon(
20-
// Finding the shared libraries directory on lldb-server is broken
21-
// since lldb-server isn't dynamically linked with liblldb.so.
22-
// Clearing the filespec here causes GetShlibDir to fail and
23-
// GetSupportExeDir to fall-back to using the binary path instead.
24-
[](lldb_private::FileSpec &file) { file.Clear(); }) {}
17+
SystemInitializerLLGS() : SystemInitializerCommon(nullptr) {}
2518

2619
llvm::Error Initialize() override;
2720
void Terminate() override;

0 commit comments

Comments
 (0)