[Lldb-commits] [lldb] r178704 - <rdar://problem/12789467>
Greg Clayton
gclayton at apple.com
Wed Apr 3 14:49:00 PDT 2013
Author: gclayton
Date: Wed Apr 3 16:49:00 2013
New Revision: 178704
URL: http://llvm.org/viewvc/llvm-project?rev=178704&view=rev
Log:
<rdar://problem/12789467>
Fixed an attach case for ARM that was imporperly detecting an application bundle when there wasn't one.
Modified:
lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.cpp
Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.cpp?rev=178704&r1=178703&r2=178704&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.cpp Wed Apr 3 16:49:00 2013
@@ -1513,7 +1513,8 @@ MachProcess::PrepareForAttach (const cha
return NULL;
const char *app_ext = strstr(path, ".app");
- if (app_ext == NULL)
+ const bool is_app = app_ext != NULL && (app_ext[4] == '\0' || app_ext[4] == '/');
+ if (!is_app)
{
DNBLogThreadedIf(LOG_PROCESS, "MachProcess::PrepareForAttach(): path '%s' doesn't contain .app, we can't tell springboard to wait for launch...", path);
return NULL;
More information about the lldb-commits
mailing list