<div dir="ltr"><div class="gmail_default" style="font-family:simsun,serif;font-size:small;color:rgb(0,0,0)"><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif">Hi:</font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif">    Currently I porting lldb for Hifive1 (riscv bare board) w/ openocd 0.10.0, but it always show "error: Process must be launched."</font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif">    I use GNU gdb to remote connect and debugging w/ the same openocd + elf, it work OK.</font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif"> </font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif">    I want to know how to launch Process in bare board?</font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif">    thanks a lot!</font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">$ lldb</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">(lldb) log enable gdb-remote packets</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">(lldb) target create Build3/riscv-hello.elf</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">Current executable set to 'Build3/riscv-hello.elf' (riscv).</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">(lldb) gdb-remote <a href="http://172.27.113.29:3333/" target="_blank">172.27.113.29:3333</a></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   1> send ack packet: +</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">history[1] tid=0x44c8 <   1> send packet: +</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   1> read packet: +</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  19> send SendPacketNoLock 2 packet: $QStartNoAckMode#b0</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   1> read packet: +</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   6> read packet: $OK#9a</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   1> send ack packet: +</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  41> send SendPacketNoLock 2 packet: $qSupported:xmlRegisters=i386,<wbr>arm,mips#12</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  80> read packet: $PacketSize=3fff;qXfer:memory-<wbr>map:read+;qXfer:features:read-<wbr>;QStartNoAckMode+#08</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  26> send SendPacketNoLock 2 packet: $QThreadSuffixSupported#e4</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  27> send SendPacketNoLock 2 packet: $QListThreadsInStopReply#21</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  13> send SendPacketNoLock 2 packet: $qHostInfo#9b</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  10> send SendPacketNoLock 2 packet: $vCont?#49</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  27> send SendPacketNoLock 2 packet: $qVAttachOrWaitSupported#38</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  16> send SendPacketNoLock 2 packet: $qProcessInfo#dc</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   6> send SendPacketNoLock 2 packet: $qC#b4</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   7> read packet: $QC0#c4</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><  16> send SendPacketNoLock 2 packet: $qfThreadInfo#bb</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif"><   5> read packet: $l#6c</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">(lldb) thread list</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font color="#000000" face="verdana, sans-serif">error: Process must be launched.</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif">(lldb) b main</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif">Breakpoint 1: where = riscv-hello.elf`main at hello.c:3, address = 0x20400230</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif">(lldb) thread continue</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif">error: invalid thread</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif">(lldb) process launch</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><  38> send SendPacketNoLock 2 packet: $QSetSTDIN:<wbr>2f6465762f7074732f343238#b6</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><  39> send SendPacketNoLock 2 packet: $QSetSTDOUT:<wbr>2f6465762f7074732f343238#17</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><  39> send SendPacketNoLock 2 packet: $QSetSTDERR:<wbr>2f6465762f7074732f343238#08</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><  21> send SendPacketNoLock 2 packet: $QSetDisableASLR:1#ce</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><  23> send SendPacketNoLock 2 packet: $QSetDetachOnError:1#f8</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><  21> send SendPacketNoLock 2 packet: $QLaunchArch:riscv#8b</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><  33> send SendPacketNoLock 2 packet: $QEnvironment:BINARY_TYPE_HPC=<wbr>#fd</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif">< 115> send SendPacketNoLock 2 packet: $A104,0,<wbr>2f70726f6a2f6d746b31333836372f<wbr>727369632d762f74657374696e672f<wbr>4275696c64332f72697363762d6865<wbr>6c6c6f2e656c66#6c</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif"><   4> read packet: $#00</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><font face="verdana, sans-serif">error: process launch failed: 'A' packet returned an error: -1</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><br></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif">Best Regards</font></div><div class="gmail_default" style="font-family:arial,sans-serif"><font face="verdana, sans-serif">--cuibixiong</font></div></div></div>