diff options
author | Greg Clayton <gclayton@apple.com> | 2012-01-06 02:01:06 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-01-06 02:01:06 +0000 |
commit | 4017fa399b0018a08bf6ae81fcb6900848034a6f (patch) | |
tree | fa20a55c9b42182c5a3ba150989e484958201173 /lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | |
parent | 8e2fc5c5e997b21721b91d97e6b12ce40e5d5791 (diff) | |
download | bcm5719-llvm-4017fa399b0018a08bf6ae81fcb6900848034a6f.tar.gz bcm5719-llvm-4017fa399b0018a08bf6ae81fcb6900848034a6f.zip |
<rdar://problem/10652336>
Fixed a crasher when trying to load an expression prefix file:
% touch /tmp/carp.txt
% xcrun lldb
(lldb) settings set target.expr-prefix /tmp/carp.txt
Segmentation fault
llvm-svn: 147646
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp index 62d85451249..12c104b24de 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp @@ -234,7 +234,7 @@ PlatformRemoteiOS::GetDeviceSupportDirectory() xcode_dir_path.append (xcode_select_prefix_dir); xcode_dir_path.append ("/usr/share/xcode-select/xcode_dir_path"); temp_file_spec.SetFile(xcode_dir_path.c_str(), false); - size_t bytes_read = temp_file_spec.ReadFileContents(0, developer_dir_path, sizeof(developer_dir_path)); + size_t bytes_read = temp_file_spec.ReadFileContents(0, developer_dir_path, sizeof(developer_dir_path), NULL); if (bytes_read > 0) { developer_dir_path[bytes_read] = '\0'; |