<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 - Odd 'watchpoint set' errors on Android target"
   href="https://bugs.llvm.org/show_bug.cgi?id=36538">36538</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Odd 'watchpoint set' errors on Android target
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dantipov@nvidia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19967" name="attach_19967" title="Sample program">attachment 19967</a> <a href="attachment.cgi?id=19967&action=edit" title="Sample program">[details]</a></span>
Sample program

$ /home/dantipov/.local/llvm-6.0.0/bin/lldb
(lldb) platform select remote-android
 Platform: remote-android
 Connected: no
(lldb) platform connect connect://localhost:9999
 Platform: remote-android
 Triple: aarch64-*-linux-android
 OS Version: 24.0.0 (3.10.96+)
 Kernel: #1 SMP PREEMPT Mon Feb 13 20:11:02 PST 2017
 Hostname: localhost
 Connected: yes
WorkingDir: /
(lldb) attach 14797
Process 14797 stopped
* thread #1, name = 't-watchpoint', stop reason = signal SIGSTOP
    frame #0: 0x0000002000f3cc44 libc.so`nanosleep + 4
libc.so`nanosleep:
->  0x2000f3cc44 <+4>:  svc    #0
    0x2000f3cc48 <+8>:  cmn    x0, #0x1, lsl #12         ; =0x1000 
    0x2000f3cc4c <+12>: cneg   x0, x0, hi
    0x2000f3cc50 <+16>: b.hi   0x2000ef644c              ; __set_errno_internal

Executable module set to
"/home/dantipov/.lldb/module_cache/remote-android/.cache/CFD513B9-0000-0000-0000-000000000000/t-watchpoint".
Architecture set to: aarch64--linux-android.
(lldb) watchpoint list
Number of supported hardware watchpoints: 4
No watchpoints currently set.
(lldb) watchpoint set variable A
Watchpoint created: Watchpoint 1: addr = 0x2000da3e60 size = 4 state = enabled
type = w
    watchpoint spec = 'A'
    new value: 7
(lldb) watchpoint set variable B
error: Watchpoint creation failed (addr=0x2000da3e64, size=4, variable
expression='B').
error: sending gdb watchpoint packet failed
(lldb) watchpoint set variable C
Watchpoint created: Watchpoint 3: addr = 0x2000da3e68 size = 4 state = enabled
type = w
    watchpoint spec = 'C'
    new value: 7
(lldb) watchpoint set variable D
error: Watchpoint creation failed (addr=0x2000da3e6c, size=4, variable
expression='D').
error: sending gdb watchpoint packet failed
(lldb) watchpoint set variable E
Watchpoint created: Watchpoint 5: addr = 0x2000da3e70 size = 4 state = enabled
type = w
    watchpoint spec = 'E'
    new value: 6
(lldb) watchpoint list
Number of supported hardware watchpoints: 4
Current watchpoints:
Watchpoint 1: addr = 0x2000da3e60 size = 4 state = enabled type = w
    watchpoint spec = 'A'
    new value: 7
Watchpoint 3: addr = 0x2000da3e68 size = 4 state = enabled type = w
    watchpoint spec = 'C'
    new value: 7
Watchpoint 5: addr = 0x2000da3e70 size = 4 state = enabled type = w
    watchpoint spec = 'E'
    new value: 6

Probably I need an advice to provide more information (extra logging?).</pre>
        </div>
      </p>


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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>