[Lldb-commits] [lldb] r189686 - Don't hide errors in PlatformFreeBSD::ResolveExecutable
Ed Maste
emaste at freebsd.org
Fri Aug 30 11:00:51 PDT 2013
Author: emaste
Date: Fri Aug 30 13:00:50 2013
New Revision: 189686
URL: http://llvm.org/viewvc/llvm-project?rev=189686&view=rev
Log:
Don't hide errors in PlatformFreeBSD::ResolveExecutable
If error is already set then there's no reason to replace it with a
generic "<file> does not exist" message.
Modified:
lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
Modified: lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp?rev=189686&r1=189685&r2=189686&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp Fri Aug 30 13:00:50 2013
@@ -236,8 +236,7 @@ PlatformFreeBSD::ResolveExecutable (cons
}
}
}
-
-
+
if (error.Success())
{
ModuleSpec module_spec (resolved_exe_file, exe_arch);
@@ -294,12 +293,7 @@ PlatformFreeBSD::ResolveExecutable (cons
}
}
}
- else
- {
- error.SetErrorStringWithFormat ("'%s' does not exist",
- exe_file.GetPath().c_str());
- }
-
+
return error;
}
More information about the lldb-commits
mailing list