<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Hi :</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">    I build a armhf qemu enviroment to test ARM lldb + lldb-server testsuite.  source code base on LLVM + LLDB + LLD + CLANG formal release 5.0.0.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">    Target: lldb-server platform --listen *:3333 --server</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">    Host :  </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">    (lldb) platform select remote-linux</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Platform: remote-linux</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Connected: no</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    (lldb) platform connect connect://<a href="http://0.0.0.0:3333">0.0.0.0:3333</a></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Platform: remote-linux</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Triple: arm-*-linux-gnueabihf</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    OS Version: 3.2.0 (3.2.0-4-vexpress)</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Kernel: #1 SMP Debian 3.2.51-1</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Hostname: debian-armhf.""</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Connected: yes</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    WorkingDir: /root</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    (lldb) file ./hello.exe</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    Current executable set to './hello.exe' (arm).</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    (lldb) log enable gdb-remote packets</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    (lldb) process launch</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[1] tid=0x6192 <   1> send packet: +</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[2] tid=0x6192 <  19> send packet: $QStartNoAckMode#b0</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[3] tid=0x6192 <   1> read packet: +</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[4] tid=0x6192 <   6> read packet: $OK#9a</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[5] tid=0x6192 <   1> send packet: +</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[6] tid=0x6192 <  13> send packet: $qHostInfo#9b</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[7] tid=0x6192 < 297> read packet:                  $triple:61726d2d2d6c696e75782d676e75656162696866;ptrsize:4;distribution_id:64656269616e;watchpoint_exceptions_received:before;endian:little;os_version:3.2.0;os_build:332e322e302d342d7665787072657373;os_kernel:233120534d502044656269616e20332e322e35312d31;hostname:64656269616e2d61726d68662e2222;#1a</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[8] tid=0x6192 <  18> send packet: $qGetWorkingDir#91</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[9] tid=0x6192 <  14> read packet: $2f726f6f74#a4</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[10] tid=0x6192 <  19> send packet: $qQueryGDBServer#cb</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[11] tid=0x6192 <   7> read packet: $E04#a9</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[12] tid=0x6192 <  73> send packet: $qModuleInfo:2e2f68656c6c6f2e657865;61726d2d2d6c696e75782d656162696866#b7</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">history[13] tid=0x6192 <   7> read packet: $E03#a8</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">history[14] tid=0x6192 <  69> send packet: $qModuleInfo:6c6962632e736f2e36;61726d2d2d6c696e75782d656162696866#7b</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    history[15] tid=0x6192 <   7> read packet: $E03#a8</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><  36> send packet: $qLaunchGDBServer;host:mtkslt202;#b1</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">    error: unable to launch a GDB server on 'debian-armhf.""'</div><div><br></div><div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">     i show host and port is uncorrect, is it a bug?</div><br></div><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Best Regards</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">--cuibixiong</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 24, 2017 at 11:04 PM, Greg Clayton <span dir="ltr"><<a href="mailto:clayborg@gmail.com" target="_blank">clayborg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Oct 24, 2017, at 12:02 AM, cui bixiong <<a href="mailto:cuibixiong@gmail.com" target="_blank">cuibixiong@gmail.com</a>> wrote:</div><br class="m_-9172928429246449152Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default">Hi</div><div class="gmail_default"><br></div><div class="gmail_default">    sorry, i'm confuse, in my mind, lldb-server maybe like gdb-server, running on Linux-like platform  listening RSP command which send form gdb and use ptrace syscall to debug which you want to debug program</div><div class="gmail_default"><br></div><div class="gmail_default">    is it support remote download to batch mode run all testsuite? certainly i think reset baseboard is very important feature too,  but in lldb-server maybe not support currently i guess.</div></div></div></div></blockquote><div><br></div>Yes lldb-server does support a full connection to a remote OS. On baseboards you are typically debugging the entire OS so lldb-server won't work because you have to OS to run it in the background. Supporting the test suite on baseboards will take some effort.</div><div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default"><br></div><div class="gmail_default">Best Regards</div><div class="gmail_default">--cuibixiong</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 23, 2017 at 11:06 PM, Greg Clayton <span dir="ltr"><<a href="mailto:clayborg@gmail.com" target="_blank">clayborg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="m_-9172928429246449152gmail-"><br>
> On Oct 22, 2017, at 6:21 AM, cuibixiong via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hi<br>
><br>
>       did anyone konw LLDB support lldb + openocd to run dotest.py in bare board like ARM or other non-x86 architecture?<br>
<br>
</span>We run the test suite on iOS devices using the platform stuff. This requires a running lldb-server on the remote system, so we only have the test suite running when we have the lldb-server running in platform mode on the other side. For this to work with baseboards, we would need the JTAG box to respond to many GDB remote protocol packets that "lldb-server platform" implements. I am sure for baseboards the test suite would need to be modified. A few ideas there:<br>
- Have the test suite watch for a triple with no os (like "arm64-none-none") and have it go into a baseboard mode<br>
- Many tests that might rely on writing to files, reading from files for stdin, and others, would need to be skipped in this mode<br>
- Any tests that build and debug shared libraries would either need to be modified to build multiple static binaries or skipped<br>
- We might need to make a Bareboard platform and would load the ELF files into memory instead of copying them over like the current platforms do<br>
<br>
So there would be quite a lot of modifications required to get the test suite running. We will be happy to help you if you choose to try this.<br>
<br>
Greg Clayton<br>
<br>
><br>
> Best Regards<br>
> —cuibixiong<br>
> ______________________________<wbr>_________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div><br></div></div>
</div></blockquote></div><br></div></blockquote></div><br></div>