<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63923>63923</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            C++ LLDB API: lldb::SBThread StepInstruction() stuck on "__kernel_clock_gettime" function
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          aadityasinha10
      </td>
    </tr>
</table>

<pre>
    I have written C++ lldb API code in which I am attaching lldb debugger to a remote android camera HAL process and I am stepping through at the instruction level after a breakpoint is hit. I am printing the name of the function at the current frame each time I step through at the instruction level.

LLDB steps through the instructions fine until it reaches the function "__kernel_clock_gettime" where it seems to be getting stuck in some sort of a loop and stops making further progress. I checked until 100000 iterations of the StepInstruction() function. The HAL process works fine without the debugger attached, so I'm not sure what could be causing this to happen. Does anyone have any idea why this could be happening? Any help with this would be greatly appreciated. Thank you.

<img width="917" alt="lldb_screenshot_1" src="https://github.com/llvm/llvm-project/assets/58428456/e6b7949d-8fd1-4ec7-b951-7c5a99b91e4a">

<img width="923" alt="lldb_screenshot_2" src="https://github.com/llvm/llvm-project/assets/58428456/670ab9ce-ea94-4ea9-8185-3c4d8fa90f88">






</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVMGO4jgQ_RpzKYGIE0hy4EA3ixapDyPN3FHFrsReEjuyK434-5WT7h71amdbKw0HA6qq5_fqlQtjtJ0jOojdk9idVjix8eGAqC0_MFpnMNuuGq8fhwsYfCW4B8tMDp6FfBLyCfpeN3D8dgHlNYF1cDdWGbgADoDMqIx13ZKlqZm6jgKwB4RAg2cCdDp4q0HhQAHhz-MLjMErijGFFpzINI4Jhk3wU2cAGdik2yKHSbH1Dnp6pR6wZQqA0ATC2-itY7ARjOXNgjQG63hBInA4EPh2_t1ObsF5g1ZTCOQY2pCSCJUBtgPBZSbzJZ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