<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/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>181cc75ea8be70e3fa7145456e1bf2331e0bc5e4 - [lldb/linux] Make truncated reads work (#106532)</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/lldb/test/API/functionalities/memory/holes/Makefile#181cc75ea8be70e3fa7145456e1bf2331e0bc5e4</link>
        <description>[lldb/linux] Make truncated reads work (#106532)Previously, we were returning an error if we couldn&apos;t read the wholeregion. This doesn&apos;t matter most of the time, because lldb caches memoryreads, and in that process it aligns them to cache line boundaries. As(LLDB) cache lines are smaller than pages, the reads are unlikely tocross page boundaries.Nonetheless, this can cause a problem for large reads (which bypass thecache), where we&apos;re unable to read anything even if just a single byteof the memory is unreadable. This patch fixes the lldb-server to dothat, and also changes the linux implementation, to reuse any partialresults it got from the process_vm_readv call (to avoid having tore-read everything again using ptrace, only to find that it stopped atthe same place).This matches debugserver behavior. It is also consistent with the gdbremote protocol documentation, but -- notably -- not with actualgdbserver behavior (which returns errors instead of partial results). Wefiled a[clarificationbug](https://sourceware.org/bugzilla/show_bug.cgi?id=24751) severalyears ago. Though we did not really reach a conclusion there, I thinkthis is the most logical behavior.The associated test does not currently pass on windows, because thewindows memory read APIs don&apos;t support partial reads (I have a WIP patchto work around that).

            List of files:
            /llvm-project/lldb/test/API/functionalities/memory/holes/Makefile</description>
        <pubDate>Mon, 02 Sep 2024 12:44:18 +0000</pubDate>
        <dc:creator>Pavel Labath &lt;pavel@labath.sk&gt;</dc:creator>
    </item>
</channel>
</rss>
