Skip to content

Commit 1f79f44

Browse files
Fix 578: Pass in CFNumberRef correctly instead of passing 0 as int (#579)
Awesome! thanks for all the hard work
1 parent d623003 commit 1f79f44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ios-deploy/ios-deploy.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,10 @@ void setup_lldb(AMDeviceRef device, CFURLRef url) {
15121512
NSLogOut(@"[100%%] Listening for lldb connections");
15131513
}
15141514
else {
1515-
create_remote_debug_server_socket(0, device); // start debugserver
1515+
int connection_id = 0;
1516+
CFNumberRef cf_connection_id = CFAutorelease(CFNumberCreate(NULL, kCFNumberIntType, &connection_id));
1517+
1518+
create_remote_debug_server_socket(cf_connection_id, device); // start debugserver
15161519
write_lldb_prep_cmds(device, url); // dump the necessary lldb commands into a file
15171520
NSLogOut(@"[100%%] Connecting to remote debug server");
15181521
}

0 commit comments

Comments
 (0)