<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>Well at least there is a little good news. I understood way more of those logs than I thought I did.<br></div>
<div><br></div>
<blockquote type="cite"><div><div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px">So two issues here:</span></span><br></div>
<div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px">1 - we need a better error message when vAttachWait returns unsupported</span></span><br></div>
<div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px">2 - fix lldb-server to support vAttachWait</span></span><br></div>
</div>
</blockquote><div><br></div>
<div>A few questions.<br></div>
<div><br></div>
<div>What is the protocol here? Can/should I report the issues at <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> ? Or is that something that a project member needs to do? Assuming that I can, would this be two seperate issues or one "large" issue?<br></div>
<div><br></div>
<div>Barring that this is not something someone else might implement better/faster than me. Considering I have zero LLDB development experience is this something that I could tackle?<br></div>
<div><br></div>
<div>On Thu, May 31, 2018, at 3:02 PM, Greg Clayton wrote:<br></div>
<blockquote type="cite"><div>lldb-server claims it doesn't support it:<br></div>
<div><br></div>
<div><div>lldb             <  48> send packet: $vAttachWait;6c616e677365727665722d7377696674#d6<br></div>
<div>lldb             <   4> read packet: $#00<br></div>
<div><br></div>
<div><br></div>
<div>Returning the empty packet ("$#00") means it is not supported, but we really should give a better error message than this. <br></div>
<div><br></div>
<div>It isn't that hard to implement. It would be easy to copy the code that is in debugserver in DNB.cpp in the <span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px">DNBProcessAttachWait function. Most of it is probably posix style stuff. </span></span><br></div>
<div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px"></span></span><br></div>
<div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px">So two issues here:</span></span><br></div>
<div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px">1 - we need a better error message when vAttachWait returns unsupported</span></span><br></div>
<div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="size" style="font-size:11px">2 - fix lldb-server to support vAttachWait</span></span><br></div>
<div><br></div>
<div>Greg<br></div>
<div><br></div>
<div><div><br></div>
<blockquote type="cite"><div>On May 31, 2018, at 11:04 AM, Ryan Lovelett <<a href="mailto:ryan@lovelett.me">ryan@lovelett.me</a>> wrote:<br></div>
<div><br></div>
<div><div><blockquote type="cite">It might be a lldb-server issue?<br></blockquote><div><br></div>
<div>How would one go about determining this?<br></div>
<div><br></div>
<div>(lldb) log enable -f /tmp/packates.txt gdb-remote packets<br></div>
<div>(lldb) process attach --name "<name>" --waitfor<br></div>
<div>error: attach failed: lost connection<br></div>
<div><br></div>
<div>Attached the log output. Maybe it'll make more sense to you than me.<br></div>
<div><br></div>
<div>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?<br></div>
<div><br></div>
<div>Does lldb-server need to be compiled in a certain way to add support for attach wait?<br></div>
<div><br></div>
<div>On Thu, May 31, 2018, at 1:49 PM, Greg Clayton wrote:<br></div>
<blockquote type="cite"><div>Try enabling logging with:<br></div>
<div><br></div>
<div>(lldb) log enable -f /tmp/packets.txt gdb-remote packets<br></div>
<div><br></div>
<div>And the try the attach. It might be a lldb-server issue?<br></div>
<div><br></div>
<blockquote type="cite"><div>On May 31, 2018, at 9:02 AM, Ryan Lovelett via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br></div>
<div><br></div>
<div>I am attempting to use: process attach --name "<name>" --waitfor<br></div>
<div><br></div>
<div>The problem is that it immediately returns error: attach failed: lost connection.<br></div>
<div><br></div>
<div>Is this something I can troubleshoot further? Or is this not supported on Linux?<br></div>
<div><br></div>
<div>-- <br></div>
<div>Ryan Lovelett<br></div>
<div>_______________________________________________<br></div>
<div>lldb-dev mailing list<br></div>
<div><a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br></div>
<div>http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br></div>
</blockquote></blockquote><div><span><packates.txt></span><br></div>
</div>
</div>
</blockquote></div>
</div>
</blockquote><div><br></div>
</body>
</html>