Index: lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py =================================================================== --- lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py +++ lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py @@ -159,7 +159,9 @@ err = platform.Run(shell_command) if err.Fail(): raise Exception("remote_platform.RunShellCommand('readlink /proc/%d/exe') failed: %s" % (pid, err)) - self.debug_monitor_exe = shell_command.GetOutput().strip() + // If the binary has been deleted, the link name has " (deleted)" appended. + // Remove if it's there. + self.debug_monitor_exe = re.sub(r' \(deleted\)$', '', shell_command.GetOutput().strip()) dname = self.dbg.GetSelectedPlatform().GetWorkingDirectory() else: self.debug_monitor_exe = get_lldb_server_exe()