i know how wait , attach local process (process attach --name procname --waitfor
).
know how run remote debugserver
, connect it.
but how can wait process start on remote host , attach it?
edit
i have tried @jim's suggestion, , seems debug server trying attach failing.
accepting answer since correct, happy know why can't debug process.
fyi trying debug mdmd (mdm daemon service) on jb iphone. process launches few seconds communicate mdm server, , dies.
this target's terminal:
~ root# debugserver *:1234
debugserver-310.2 arm64.
listening port 1234 connection *...
got connection, waiting process information launching or attaching.
attach succeeded, ready debug.
exiting.
and lldb's:
(lldb) process connect connect://localhost:1234
(lldb) process attach --name mdmd --waitfor
error: attach failed: unable attach
the easiest way start remote debugserver port connect , no other arguments. in mode driven lldb connected it. do:
(lldb) process attach --name procname --waitfor
and instruct remote debugserver wait process show , attach it.
Comments
Post a Comment