<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - debugserver: ignores P packets when setting AVX-2 and AVX-512 registers"
   href="https://bugs.llvm.org/show_bug.cgi?id=52362">52362</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>debugserver: ignores P packets when setting AVX-2 and AVX-512 registers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alessandro.arzilli@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Sending a P packet to debugserver to change the value of a AVX-2 or AVX-512
register will appear to work:

request:
$P5b=cdcccccccccc0840000000000000000000000000000000000000000000000000;thread:39d025;#24
response: $OK#00

but the new register value will not be written to the target process.

This happens because DNBArchImplX86_64::SetRegisterValue at line 2635:

<a href="https://github.com/llvm/llvm-project/blob/2c4a9e830cbb3b91a57902f7ecd508c544701819/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp#L2635">https://github.com/llvm/llvm-project/blob/2c4a9e830cbb3b91a57902f7ecd508c544701819/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp#L2635</a>

returns directly instead of setting success to true and allowing the call to
SetRegisterState to happen.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>