<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 24, 2017, at 12:02 AM, cui bixiong <<a href="mailto:cuibixiong@gmail.com" class="">cuibixiong@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family: verdana, sans-serif; font-size: small;"><div class="gmail_default">Hi</div><div class="gmail_default"><br class=""></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 class=""></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 class=""></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" class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family: verdana, sans-serif; font-size: small;"><div class="gmail_default"><br class=""></div><div class="gmail_default">Best Regards</div><div class="gmail_default">--cuibixiong</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Oct 23, 2017 at 11:06 PM, Greg Clayton <span dir="ltr" class=""><<a href="mailto:clayborg@gmail.com" target="_blank" class="">clayborg@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br class="">
> On Oct 22, 2017, at 6:21 AM, cuibixiong via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:<br class="">
><br class="">
> Hi<br class="">
><br class="">
> did anyone konw LLDB support lldb + openocd to run dotest.py in bare board like ARM or other non-x86 architecture?<br class="">
<br class="">
</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 class="">
- Have the test suite watch for a triple with no os (like "arm64-none-none") and have it go into a baseboard mode<br class="">
- 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 class="">
- Any tests that build and debug shared libraries would either need to be modified to build multiple static binaries or skipped<br class="">
- 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 class="">
<br class="">
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 class="">
<br class="">
Greg Clayton<br class="">
<br class="">
><br class="">
> Best Regards<br class="">
> —cuibixiong<br class="">
> ______________________________<wbr class="">_________________<br class="">
> lldb-dev mailing list<br class="">
> <a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a><br class="">
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/<wbr class="">mailman/listinfo/lldb-dev</a><br class="">
<br class="">
</blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></body></html>