Skip to content

Commit f47298e

Browse files
[lldb] Use correct path for debugserver
1 parent 616d104 commit f47298e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ FileSpec GDBRemoteCommunication::GetDebugserverPath(Platform *platform) {
906906
FileSystem::Instance().Exists(debugserver_file_spec);
907907
if (!debugserver_exists) {
908908
// The debugserver binary is in the LLDB.framework/Resources directory.
909-
debugserver_file_spec = HostInfo::GetSupportExeDir();
909+
debugserver_file_spec.SetDirectory(HostInfo::GetProgramFileSpec().GetDirectory());
910910
if (debugserver_file_spec) {
911911
debugserver_file_spec.AppendPathComponent(DEBUGSERVER_BASENAME);
912912
debugserver_exists = FileSystem::Instance().Exists(debugserver_file_spec);

0 commit comments

Comments
 (0)