<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in Makefile</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>14086849 - [lldb] Introduce PlatformQemuUser</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/lldb/test/API/qemu/Makefile#14086849</link>
        <description>[lldb] Introduce PlatformQemuUserThis adds a new platform class, whose job is to enable running(debugging) executables under qemu.(For general information about qemu, I recommend reading the RFC threadon lldb-dev&lt;https://lists.llvm.org/pipermail/lldb-dev/2021-October/017106.html&gt;.)This initial patch implements the necessary boilerplate as well as theminimal amount of functionality needed to actually be able to dosomething useful (which, in this case means debugging a fully staticallylinked executable).The knobs necessary to emulate dynamically linked programs, as well asto control other aspects of qemu operation (the emulated cpu, forinstance) will be added in subsequent patches. Same goes for the abilityto automatically bind to the executables of the emulated architecture.Currently only two settings are available:- architecture: the architecture that we should emulate- emulator-path: the path to the emulatorEven though this patch is relatively small, it doesn&apos;t lack subtletiesthat are worth calling out explicitly:- named sockets: qemu supports tcp and unix socket connections, both of  them in the &quot;forward connect&quot; mode (qemu listening, lldb connecting).  Forward TCP connections are impossible to realise in a race-free way.  This is the reason why I chose unix sockets as they have larger, more  structured names, which can guarantee that there are no collisions  between concurrent connection attempts.- the above means that this code will not work on windows. I don&apos;t think  that&apos;s an issue since user mode qemu does not support windows anyway.- Right now, I am leaving the code enabled for windows, but maybe it  would be better to disable it (otoh, disabling it means windows  developers can&apos;t check they don&apos;t break it)- qemu-user also does not support macOS, so one could contemplate  disabling it there too. However, macOS does support named sockets, so  one can even run the (mock) qemu tests there, and I think it&apos;d be a  shame to lose that.Differential Revision: https://reviews.llvm.org/D114509

            List of files:
            /llvm-project-15.0.7/lldb/test/API/qemu/Makefile</description>
        <pubDate>Thu, 11 Nov 2021 18:54:39 +0000</pubDate>
        <dc:creator>Pavel Labath &lt;pavel@labath.sk&gt;</dc:creator>
    </item>
</channel>
</rss>
