[Lldb-commits] [PATCH] D12977: LLDB MI addition for getting process stopped at first instruction right after launch via -exec-run

Ilia K via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 29 08:34:38 PDT 2015


ki.stfu requested changes to this revision.
This revision now requires changes to proceed.

================
Comment at: test/tools/lldb-mi/control/TestMiExec.py:16
@@ +15,3 @@
+    @skipIfFreeBSD # Failure presumably due to StopAtEntry most likely not implemented
+    def test_lldbmi_exec_run(self):
+        """Test that 'lldb-mi --interpreter' can stop at entry."""
----------------
This test doesn't pass on Linux due to missing *stopped notification:
```
$ bin/lldb-mi echo
(gdb)
-file-exec-and-symbols "echo"
^done
(gdb)
=library-loaded,id="/bin/echo",target-name="/bin/echo",host-name="/bin/echo",symbols-loaded="0",loaded_addr="-",size="0"
-exec-run --start
^running
=thread-group-started,id="i1",pid="28031"
(gdb)
=thread-created,id="1",group-id="i1"
=thread-selected,id="1"
(gdb)
=library-loaded,id="/bin/echo",target-name="/bin/echo",host-name="/bin/echo",symbols-loaded="0",loaded_addr="-",size="0"
process status
Process 28031 stopped
* thread #1: tid = 28031, 0x00007ffff7dd9cd0, name = 'echo', stop reason = signal SIGSTOP
    frame #0: 0x00007ffff7dd9cd0
->  0x7ffff7dd9cd0: movq   %rsp, %rdi
    0x7ffff7dd9cd3: callq  0x7ffff7dddc30
    0x7ffff7dd9cd8: movq   %rax, %r12
    0x7ffff7dd9cdb: movl   0x22310f(%rip), %eax
^done
(gdb)
```

You can XFAIL this test case with the link to the corresponding issue on bug tracker (create a new one if needed).


Repository:
  rL LLVM

http://reviews.llvm.org/D12977





More information about the lldb-commits mailing list