[Lldb-commits] [lldb] r152182 - /lldb/trunk/source/Host/macosx/Host.mm
Han Ming Ong
hanming at apple.com
Tue Mar 6 16:32:38 PST 2012
Author: hanming
Date: Tue Mar 6 18:32:38 2012
New Revision: 152182
URL: http://llvm.org/viewvc/llvm-project?rev=152182&view=rev
Log:
<rdar://10996650>
Passed in the right number of parameters for CFDictionaryCreate
Modified:
lldb/trunk/source/Host/macosx/Host.mm
Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=152182&r1=152181&r2=152182&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Tue Mar 6 18:32:38 2012
@@ -1315,7 +1315,7 @@
CFStringRef prompt = CFSTR("The debugger needs administrator rights to debug a root process.");
CFStringRef keys[] = { CFSTR("en") };
CFTypeRef values[] = { prompt };
- CFDictionaryRef promptDict = CFDictionaryCreate(kCFAllocatorDefault, (const void **)keys, (const void **)values, 2, &kCFCopyStringDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
+ CFDictionaryRef promptDict = CFDictionaryCreate(kCFAllocatorDefault, (const void **)keys, (const void **)values, 1, &kCFCopyStringDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFStringRef keys1[] = { CFSTR("class"), CFSTR("group"), CFSTR("comment"), CFSTR("default-prompt"), CFSTR("shared") };
CFTypeRef values1[] = { CFSTR("user"), CFSTR("admin"), CFSTR("com.apple.lldb.LaunchUsingXPC"), promptDict, kCFBooleanFalse };
More information about the lldb-commits
mailing list