Add -exec-abort command (MI); Don't exit on eStateExited
authorIlia K <ki.stfu@gmail.com>
Tue, 24 Feb 2015 10:40:45 +0000 (10:40 +0000)
committerIlia K <ki.stfu@gmail.com>
Tue, 24 Feb 2015 10:40:45 +0000 (10:40 +0000)
commit2f8524455380982de450494ed35a7338c3454792
treec29fef28c51e8a666912eea423d837f7f747a976
parent327b6f59424b8031f87917f39ac40bbac2c67ea0
Add -exec-abort command (MI); Don't exit on eStateExited

Summary:
Add -exec-abort command + test.

Also, I had fixed an error, when lldb-mi exits on eStateExited. With current patch we can re-run target:
```
-file-exec-and-symbols hello
^done
-exec-run
^running
*stopped,reason="breakpoint-hit"...
-exec-abort
^done
*stopped,reason="exited-normally"...    <- program exits
-exec-run                               <- run again
^running
*stopped,reason="breakpoint-hit"...
```

All tests pass on OS X.

Reviewers: zturner, emaste, abidh, clayborg

Reviewed By: abidh, clayborg

Subscribers: lldb-commits, emaste, zturner, clayborg, abidh

Differential Revision: http://reviews.llvm.org/D7794

llvm-svn: 230321
lldb/test/tools/lldb-mi/control/TestMiExec.py
lldb/tools/lldb-mi/MICmdCmdExec.cpp
lldb/tools/lldb-mi/MICmdCmdExec.h
lldb/tools/lldb-mi/MICmdCommands.cpp
lldb/tools/lldb-mi/MICmnLLDBDebugger.cpp
lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.h
lldb/tools/lldb-mi/MICmnResources.cpp
lldb/tools/lldb-mi/MICmnResources.h