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

    <tr>
        <th>Summary</th>
        <td>
            LLDB: No example on how to wait for LLDB using liblldb in C++
        </td>
    </tr>

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

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

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

<pre>
    Hey,

I am searching myself to hell in trying to find any documentation or example in how to wait for LLDB so it can run callbacks and stuff like that. You might also call it "running the lldb async loop" but whatever.

Anyways, there needs to be at least one example in how to do that in C++.

The examples I have been basing my project on so far are https://github.com/llvm/llvm-project/tree/main/lldb/examples/lookup and https://github.com/llvm/llvm-project/tree/main/lldb/examples/functions - neither of them implement that.

niansa aka tuxifan

PS: If you could just comment a very small example or some link to the reference that'd be amazing of you so I don't have to wait until there is a full example!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU01v2zAM_TX2hWjgKPE6H3zoB4YFKIYB22VHWqZjNbIU6KOp9-tHyc2SAtthwADDskTy8YnvubP93H6muRAPRfVYVHfLewc4gSd0clRmD9PsSQ8QLIykNSgDwc0pwCeDMj2gmaG3Mk5kAgZlDVgH9IrTUVNKH-0p5Z5QBRg49PT0eA_eAm8lGnDR8Kp1h_LgGawHH-IwgFYHgjBiWMEPG2FS-zEAai5M2am6EIKLTeYyEmjdd4B-NhK0tUeOQhcDnBiCXsitru94Z-YTzp5vnkodgSHqfaLZEWAATegDWEN_uEhvM6108lCIe37eQX8ffxd52MGIL8SgZKBDv8wTjs4-k0z4aQ4DOkCmMIZw9MXmrhCf-NmrMMZuJe3EG61fzsvNWzFvgyPiZUJlcrDveDm3TifWHuIxj_S_Yw_RyKS1hxuenUpDBDukYU6gUlJywyLf9XCMQuMR8IAQ4qsa0FxHv35jirAbYGbBpY26h-fIOjDRDIfAOs7gp2SAszDsKG8nll-ZQ5InWcHRwKIauRioELd91nXCn0kBuzTg0e9YTL7fbVhkOrs0mqD0mzEUexKGeGlYiHXZt5u-2TRYBhU0tcnRifkXe2H1F9_H7AGtuuzWi4XK6HT7zyop72OWo95uGlGOLQlsKtHQtq5kdSv4WH5sGtGsh3qzbQhLjR1p3xY1NxWGTpAh-LuoH0vVikqIarOuxbrarqsVfdhWVG_X1MhedFIUvGVL6FXisbJuX7o2U-ri3nNQKx_8JYjeqz3_Wbkd42MMo3XtYoIyd24z81_AuYPI">