diff options
author | Greg Clayton <gclayton@apple.com> | 2013-04-03 21:49:00 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-04-03 21:49:00 +0000 |
commit | aeabc5e251105512ea7539b2f62ad3edd485d0dc (patch) | |
tree | 72a957167b8042010da031287a1bcddeecfb09d3 /tools | |
parent | 00af72e395d138f459192b7f5450fa4c7854f135 (diff) | |
download | lldb-aeabc5e251105512ea7539b2f62ad3edd485d0dc.tar.gz |
<rdar://problem/12789467>
Fixed an attach case for ARM that was imporperly detecting an application bundle when there wasn't one.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@178704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/debugserver/source/MacOSX/MachProcess.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/debugserver/source/MacOSX/MachProcess.cpp b/tools/debugserver/source/MacOSX/MachProcess.cpp index 8176f10a1..764e25f5d 100644 --- a/tools/debugserver/source/MacOSX/MachProcess.cpp +++ b/tools/debugserver/source/MacOSX/MachProcess.cpp @@ -1513,7 +1513,8 @@ MachProcess::PrepareForAttach (const char *path, nub_launch_flavor_t launch_flav 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; |