<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="">If you are launching your lldb-server and it is already debugging a program you don't use "process launch", you use "process attach" if you are connected to your platform. <div class=""><br class=""></div><div class="">It isn't recommended to use "remote-gdb-server" platform directly. "remote-linux" uses "remote-gdb-server" underneath it, but it also overrides a bunch of other platform functions that you need in order to debug correctly. So use "remote-linux".</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 28, 2017, at 3:15 AM, Tatyana Krasnukha via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">I guess 2 ways of remote debugging:<o:p class=""></o:p></span></div><ul type="disc" style="margin-bottom: 0in; margin-top: 0in;" class=""><li class="MsoListParagraph" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">“</span><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class="">remote-linux</span><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">”</span><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class=""><span class="Apple-converted-space"> </span>platform with process attach instead of process launch<o:p class=""></o:p></span></li><li class="MsoListParagraph" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">“</span><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">remote-gdb-server”<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class="">platform<span class="Apple-converted-space"> </span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">with<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class="">process launch.<o:p class=""></o:p></span></li></ul><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class="">As I understood, both of them use lldb-server.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">To execute tests remotely you may run dotest.py with according options (platform-name and platfrom-url).<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">As for openocd and other<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class="">gdb servers, there is no way to use them for remote testing. I haven’t found, at least.</span><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Thanks,<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Tatyana<o:p class=""></o:p></span></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="border-style: none none none solid; border-left-width: 1.5pt; border-left-color: blue; padding: 0in 0in 0in 4pt;" class=""><div class=""><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span>cuibixiong [<a href="mailto:cuibixiong@gmail.com" class="">mailto:cuibixiong@gmail.com</a>]<span class="Apple-converted-space"> </span><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Saturday, 28 October, 2017 12:40 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Tatyana Krasnukha <<a href="mailto:Tatyana.Krasnukha@synopsys.com" class="">Tatyana.Krasnukha@synopsys.com</a>><br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [lldb-dev] did anyone konw LLDB support lldb + openocd to run dotest.py in bare board like ARM or other non-x86 architecture?<o:p class=""></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class="">Hi <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span class="apple-tab-span"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class=""> <span class="Apple-converted-space"> </span></span></span><span style="font-family: Calibri, sans-serif;" class="">You mean should use “</span><span style="font-size: 9pt; font-family: Verdana, sans-serif;" class="">platform select remote-linux” ? I use it but also report error: unable to launch a GDB server on 'debian-armhf.""'</span><o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span class="apple-tab-span"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class=""> <span class="Apple-converted-space"> </span></span></span><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class="">in-addition, you said gdb-server is “GNU GDB server” or just lldb-server services ?<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class="">Best Regards<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class="">—cuibixiong<o:p class=""></o:p></span></div></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0in 0in;" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-family: 'Microsoft JhengHei', sans-serif;" class="">发件人</span></b><b class=""><span style="font-family: Calibri, sans-serif;" class="">:<span class="Apple-converted-space"> </span></span></b><span style="font-family: Calibri, sans-serif;" class="">Tatyana Krasnukha <<a href="mailto:Tatyana.Krasnukha@synopsys.com" style="color: purple; text-decoration: underline;" class="">Tatyana.Krasnukha@synopsys.com</a>><br class=""></span><b class=""><span style="font-family: 'MS Gothic';" class="">日期</span></b><b class=""><span style="font-family: Calibri, sans-serif;" class="">:<span class="Apple-converted-space"> </span></span></b><span style="font-family: Calibri, sans-serif;" class="">2017</span><span style="font-family: 'MS Gothic';" class="">年</span><span style="font-family: Calibri, sans-serif;" class="">10</span><span style="font-family: 'MS Gothic';" class="">月</span><span style="font-family: Calibri, sans-serif;" class="">27</span><span style="font-family: 'MS Gothic';" class="">日</span><span style="font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span></span><span style="font-family: 'MS Gothic';" class="">星期五</span><span style="font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span>21:53<br class=""></span><b class=""><span style="font-family: 'MS Gothic';" class="">至</span></b><b class=""><span style="font-family: Calibri, sans-serif;" class="">:<span class="Apple-converted-space"> </span></span></b><span style="font-family: Calibri, sans-serif;" class="">cuibixiong <<a href="mailto:cuibixiong@gmail.com" style="color: purple; text-decoration: underline;" class="">cuibixiong@gmail.com</a>><br class=""></span><b class=""><span style="font-family: 'MS Gothic';" class="">抄送</span></b><b class=""><span style="font-family: Calibri, sans-serif;" class="">:<span class="Apple-converted-space"> </span></span></b><span style="font-family: Calibri, sans-serif;" class="">"<a href="mailto:lldb-dev@lists.llvm.org" style="color: purple; text-decoration: underline;" class="">lldb-dev@lists.llvm.org</a>" <<a href="mailto:lldb-dev@lists.llvm.org" style="color: purple; text-decoration: underline;" class="">lldb-dev@lists.llvm.org</a>><br class=""></span><b class=""><span style="font-family: 'MS Gothic';" class="">主</span></b><b class=""><span style="font-family: 'Microsoft JhengHei', sans-serif;" class="">题</span></b><b class=""><span style="font-family: Calibri, sans-serif;" class="">:<span class="Apple-converted-space"> </span></span></b><span style="font-family: Calibri, sans-serif;" class="">RE: [lldb-dev] did anyone konw LLDB support lldb + openocd to run dotest.py in bare board like ARM or other non-x86 architecture?<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">It seems that ‘process launch’ tries to launch gdb-server that is already started manually, try to attach instead.</span><span style="" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">I also met ‘remote-gdb-server’ platform, maybe it fits your goal better? Didn’t you try to do something like this</span><span style="" class="">?<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class="">dotest.py --platform-name=remote-gdb-server --platfrom-url=<a href="connect://hostname:port" class="">connect://hostname:port</a> --arch=architecture ...<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div><div style="border-style: none none none solid; border-left-width: 1.5pt; border-left-color: blue; padding: 0in 0in 0in 4pt;" class=""><div class=""><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span>lldb-dev [<a href="mailto:lldb-dev-bounces@lists.llvm.org" style="color: purple; text-decoration: underline;" class="">mailto:lldb-dev-bounces@lists.llvm.org</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>cui bixiong via lldb-dev<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Friday, 27 October, 2017 9:41 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Greg Clayton <<a href="mailto:clayborg@gmail.com" style="color: purple; text-decoration: underline;" class="">clayborg@gmail.com</a>><br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span>lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" style="color: purple; text-decoration: underline;" class="">lldb-dev@lists.llvm.org</a>><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [lldb-dev] did anyone konw LLDB support lldb + openocd to run dotest.py in bare board like ARM or other non-x86 architecture?</span><span style="" class=""><o:p class=""></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">Hi :</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> 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.</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Target: lldb-server platform --listen *</span><span style="font-family: 'MS Gothic';" class="">:</span><span style="font-family: Verdana, sans-serif;" class="">3333 --server</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Host : </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> (lldb) platform select remote-linux</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Platform: remote-linux</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Connected: no</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> (lldb) platform connect connect://<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__0.0.0.0-3A3333&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=yfnu24japkhNGh-WqJObHXmH3mINtC_2FO828lrNpM0&m=uN6_uN-vbhkIBUYfgaia_IIUZ-KsQTwmy_orALFBdnw&s=gG9WkTsbhG3Ylm1kB0uyHUObWovqkIKU8ax052TDtxY&e=" style="color: purple; text-decoration: underline;" class="">0.0.0.0:3333</a></span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Platform: remote-linux</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Triple: arm-*-linux-gnueabihf</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> OS Version: 3.2.0 (3.2.0-4-vexpress)</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Kernel: #1 SMP Debian 3.2.51-1</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Hostname: debian-armhf.""</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Connected: yes</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> WorkingDir: /root</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> (lldb) file ./hello.exe</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> Current executable set to './hello.exe' (arm).</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> (lldb) log enable gdb-remote packets</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> (lldb) process launch</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[1] tid=0x6192 < 1> send packet: +</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[2] tid=0x6192 < 19> send packet: $QStartNoAckMode#b0</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[3] tid=0x6192 < 1> read packet: +</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[4] tid=0x6192 < 6> read packet: $OK#9a</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[5] tid=0x6192 < 1> send packet: +</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[6] tid=0x6192 < 13> send packet: $qHostInfo#9b</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> 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</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[8] tid=0x6192 < 18> send packet: $qGetWorkingDir#91</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[9] tid=0x6192 < 14> read packet: $2f726f6f74#a4</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[10] tid=0x6192 < 19> send packet: $qQueryGDBServer#cb</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[11] tid=0x6192 < 7> read packet: $E04#a9</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[12] tid=0x6192 < 73> send packet: $qModuleInfo:2e2f68656c6c6f2e657865;61726d2d2d6c696e75782d656162696866#b7</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">history[13] tid=0x6192 < 7> read packet: $E03#a8</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">history[14] tid=0x6192 < 69> send packet: $qModuleInfo:6c6962632e736f2e36;61726d2d2d6c696e75782d656162696866#7b</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> history[15] tid=0x6192 < 7> read packet: $E03#a8</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">< 36> send packet: $qLaunchGDBServer;host:mtkslt202;#b1</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> error: unable to launch a GDB server on 'debian-armhf.""'</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> i show host and port is uncorrect, is it a bug?</span><span style="" class=""><o:p class=""></o:p></span></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">Best Regards</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">--cuibixiong</span><span style="" class=""><o:p class=""></o:p></span></div></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class="">On Tue, Oct 24, 2017 at 11:04 PM, Greg Clayton <<a href="mailto:clayborg@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">clayborg@gmail.com</a>> wrote:<o:p class=""></o:p></span></div><blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;" class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div><div class=""><blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class="">On Oct 24, 2017, at 12:02 AM, cui bixiong <<a href="mailto:cuibixiong@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">cuibixiong@gmail.com</a>> wrote:<o:p class=""></o:p></span></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div><div class=""><div class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">Hi</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> sorry</span><span style="font-family: 'MS Gothic';" class="">,</span><span style="font-family: Verdana, sans-serif;" class=""><span class="Apple-converted-space"> </span>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</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> 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.</span><span style="" class=""><o:p class=""></o:p></span></div></div></div></div></div></blockquote><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class="">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.<o:p class=""></o:p></span></div></div><div class=""><blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class=""><div class=""><div class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class=""> </span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">Best Regards</span><span style="" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: Verdana, sans-serif;" class="">--cuibixiong</span><span style="" class=""><o:p class=""></o:p></span></div></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class="">On Mon, Oct 23, 2017 at 11:06 PM, Greg Clayton <<a href="mailto:clayborg@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">clayborg@gmail.com</a>> wrote:<o:p class=""></o:p></span></div><blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;" class=""><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="" class=""><br class=""><span class="m-9172928429246449152gmail-">> On Oct 22, 2017, at 6:21 AM, cuibixiong via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@lists.llvm.org</a>> wrote:</span><br class=""><span class="m-9172928429246449152gmail-">></span><br class=""><span class="m-9172928429246449152gmail-">> Hi</span><br class=""><span class="m-9172928429246449152gmail-">></span><br class=""><span class="m-9172928429246449152gmail-">> did anyone konw LLDB support lldb + openocd to run dotest.py in bare board like ARM or other non-x86 architecture?</span><br class=""><br class="">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="">> _______________________________________________<br class="">> lldb-dev mailing list<br class="">><span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@lists.llvm.org" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@lists.llvm.org</a><br class="">><span class="Apple-converted-space"> </span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_lldb-2Ddev&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=yfnu24japkhNGh-WqJObHXmH3mINtC_2FO828lrNpM0&m=uN6_uN-vbhkIBUYfgaia_IIUZ-KsQTwmy_orALFBdnw&s=XumZaATwR447RuANlMXxfm7a3f09ZfjC48JPk393PvE&e=" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><o:p class=""></o:p></span></p></blockquote></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div></div></div></div></blockquote></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div></div></blockquote></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="" class=""> <o:p class=""></o:p></span></div></div></div></div></div></div></div><span style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">lldb-dev mailing list</span><br style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a></span><br style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a></span></div></blockquote></div><br class=""></div></div></body></html>