<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 - Can't the SBDebugger API be used directly on android?"
   href="https://bugs.llvm.org/show_bug.cgi?id=43017">43017</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't the SBDebugger API  be used directly on android?
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </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>mryusolo@live.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I want to use the LLDB SBDebugger API to create a debugger, create targets, set
breakpoints, load processes, and use the SBDebugger API to get stack
information.
On linux:
 SBDebugger::Initialize();
 SBDebugger debugger = SBDebugger::Create();
 SBTarget target = degugger.CreateTarget(); 
Then create breakpoint and set some parameters, 
 target.Launch();
In this way, the stack information can be successfully obtained.

However, on android, there is apk,xx.so in the android installation directory.
We don't know what the filename of CreateTarget is set when creating the
target. Obviously, both apk and xx.so are wrong.But we still try the apk,
because on android is also made of the elf format reads the target information,
the format of the apk is not the elf, and then try the xx. So, read the target
information is correct, but in GDBRemoteCommunication: :
StartDebugserverProcess program in the Lord, then using the androidstudio LLDB
- server, process Launch  success, but there is no stack information.

Can I use the SBDebugger API to directly debug on android? 

Please help me, thank you!</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>