<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - lldb cannot launch process on Android mips/mips64 target"
   href="https://llvm.org/bugs/show_bug.cgi?id=24388">24388</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lldb cannot launch process on Android mips/mips64 target
          </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>normal
          </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@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chying@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>lldb couldn't launch process on Android mips/mips64 target
error: failed to launch or debug process

Repro steps:

1. build lldb-server for mips

2. launch lldb-server on mips device or emulator

3. create simple mips application
$ cat main.cpp 
#include <stdio.h>
int main()
{
  printf("HELLO\n");
  return 0;
}
$ /path/to/mipsel-linux-android-gcc -pie main.cpp

4. launch lldb and attach to process
(lldb) platform select remote-android
  Platform: remote-android
 Connected: no
(lldb) platform connect connect://localhost:5430
  Platform: remote-android
    Triple: arm--linux-android
OS Version: 3.4.67 (3.4.67-00992-gb1dfee2)
    Kernel: #39 PREEMPT Mon Jul 13 11:06:17 PDT 2015
  Hostname: localhost
 Connected: yes
WorkingDir: /data/local/tmp/lldb
(lldb) platform settings --working-dir /data/local/tmp/lldb/
(lldb) file a.out
Current executable set to 'a.out' (mipsel).
(lldb) r
error: failed to launch or debug process</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>