> It might be a lldb-server issue? How would one go about determining this?
(lldb) log enable -f /tmp/packates.txt gdb-remote packets (lldb) process attach --name "<name>" --waitfor error: attach failed: lost connection Attached the log output. Maybe it'll make more sense to you than me. That escalated quickly. So I've read through that log. I found something that says $qVAttachOrWaitSupported#38 with the following response being $#00. Perhaps I'm reading too much but is it that it's reporting that it is not supported? Does lldb-server need to be compiled in a certain way to add support for attach wait? On Thu, May 31, 2018, at 1:49 PM, Greg Clayton wrote: > Try enabling logging with: > > (lldb) log enable -f /tmp/packets.txt gdb-remote packets > > And the try the attach. It might be a lldb-server issue? > > > On May 31, 2018, at 9:02 AM, Ryan Lovelett via lldb-dev > > <lldb-dev@lists.llvm.org> wrote: > > > > I am attempting to use: process attach --name "<name>" --waitfor > > > > The problem is that it immediately returns error: attach failed: lost > > connection. > > > > Is this something I can troubleshoot further? Or is this not supported on > > Linux? > > > > -- > > Ryan Lovelett > > _______________________________________________ > > lldb-dev mailing list > > lldb-dev@lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev >
lldb < 1> send packet: + lldb history[1] tid=0x29c5 < 1> send packet: + lldb < 19> send packet: $QStartNoAckMode#b0 lldb < 1> read packet: + lldb < 6> read packet: $OK#9a lldb < 1> send packet: + lldb < 41> send packet: $qSupported:xmlRegisters=i386,arm,mips#12 lldb < 124> read packet: $PacketSize=20000;QStartNoAckMode+;QThreadSuffixSupported+;QListThreadsInStopReply+;qEcho+;QPassSignals+;qXfer:auxv:read+#be lldb < 26> send packet: $QThreadSuffixSupported#e4 lldb < 6> read packet: $OK#9a lldb < 27> send packet: $QListThreadsInStopReply#21 lldb < 6> read packet: $OK#9a lldb < 13> send packet: $qHostInfo#9b lldb < 337> read packet: $triple:7838365f36342d2d6c696e75782d676e75;ptrsize:8;distribution_id:7562756e7475;watchpoint_exceptions_received:after;endian:little;os_version:4.15.0;os_build:342e31352e302d32322d67656e65726963;os_kernel:2332342d5562756e747520534d5020576564204d61792031362031323a31353a3137205554432032303138;hostname:7562756e74752d73776966742d646576;#46 lldb < 10> send packet: $vCont?#49 lldb < 17> read packet: $vCont;c;C;s;S#62 lldb < 27> send packet: $qVAttachOrWaitSupported#38 lldb < 4> read packet: $#00 lldb < 23> send packet: $QEnableErrorStrings#8c lldb < 6> read packet: $OK#9a lldb < 23> send packet: $QSetDetachOnError:1#f8 lldb < 6> read packet: $OK#9a lldb < 48> send packet: $vAttachWait;6c616e677365727665722d7377696674#d6 lldb < 4> read packet: $#00
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev