<div dir="ltr">Indeed, that's exactly what I've done. I've got a "lldb-server-dpu", and the only modification I made to have it working as expected is to have a second "liblldbHost.a" ("liblldbHostDpu.a"), with a single modification in "HostInfoBase::ComputeHostArchitectureSupport" (<a href="https://github.com/upmem/lldb/commit/d35bbb8376096fd3ab3047b1c5ec507c96731deb#diff-7a05d638d592248e1fbb10192911affbR298">https://github.com/upmem/lldb/commit/d35bbb8376096fd3ab3047b1c5ec507c96731deb#diff-7a05d638d592248e1fbb10192911affbR298</a>)<div><div>Seems to work well for the moment.</div><div><br></div><div>Romaric</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 12, 2019 at 11:11 PM Greg Clayton <<a href="mailto:clayborg@gmail.com">clayborg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><br><div><br><blockquote type="cite"><div>On Jun 18, 2019, at 7:08 AM, Romaric Jodin via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="gmail-m_-4953392183992728770Apple-interchange-newline"><div><div dir="ltr">Hello everyone,<div><br></div><div>I am trying to add a new architecture into LLDB.</div><div>My architecture is a accelerator with its own ISA for which we have a LLVM backend (release 7.1).</div><div><br></div><div>I have started by creating a new NativeProcessProtocol for my architecture. So I have a lldb-server that run on a x86, but which takes care of process of my architecture. I have forced it to use my NativeProcessProtocol.</div><div>I have a issue with this method because as the lldb-server is compile to run on a x86, some part of the code think that it is managing x86 process.</div></div></div></blockquote></div><div><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Maybe I am going in the wrong direction to add such new architecture to LLDB, I would be happy to try any other suggestions.</div></div></div></blockquote><div><br></div><div>lldb-server is currently meant to build a native debugging GDB server that can be used with lldb. If you want to always build a cross build lldb-server for your architecture, you will want to add a new tool that gets built in the CMakeList.txt in the tools/lldb-server directory. You will need to build it into a different binary like "lldb-server-dpu". I am not sure how much trouble you will run into doing this though as much of the lldb-server build assumes things match the current host.</div><div><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><br></div><div>If you are interested, you can have a look at my branch "dev/rjodin/lldb_dpu" in our forked repo of LLDB "<a href="https://github.com/upmem/lldb" target="_blank">https://github.com/upmem/lldb</a>". The branch is not clean, but it can help you understand what I did.</div><div><br></div><div>Thanks,</div>-- <br><div dir="ltr" class="gmail-m_-4953392183992728770gmail_signature"><div dir="ltr"><div style="color:rgb(136,136,136)"><span style="font-size:12.8px"><b>Romaric JODIN</b></span></div><div style="color:rgb(136,136,136)"><span style="font-size:12.8px">UPMEM</span></div><div style="color:rgb(136,136,136)"><font size="1"><i>Software Engineer</i></font></div><div style="color:rgb(136,136,136)"><br></div><div style="color:rgb(136,136,136)"><span id="gmail-m_-4953392183992728770cid:ii_jm7vnlj17_165ed4ff64757184"><logo signature mail 50x50.png></span></div></div></div></div></div>
_______________________________________________<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="https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br></div></blockquote></div><br></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="color:rgb(136,136,136)"><span style="color:rgb(0,0,0);font-size:12.8px"><b>Romaric JODIN</b></span></div><div style="color:rgb(136,136,136)"><span style="color:rgb(0,0,0);font-size:12.8px">UPMEM</span></div><div style="color:rgb(136,136,136)"><font color="#000000" size="1"><i>Software Engineer</i></font></div><div style="color:rgb(136,136,136)"><br></div><div style="color:rgb(136,136,136)"><img src="cid:ii_jm7vnlj17_165ed4ff64757184" width="50" height="50"></div></div></div>