This is an archive of the discontinued LLVM Phabricator instance.

Add -exec-abort command (MI); Don't exit on eStateExited
ClosedPublic

Authored by ki.stfu on Feb 20 2015, 9:50 AM.

Details

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.

Diff Detail

Event Timeline

ki.stfu updated this revision to Diff 20417.Feb 20 2015, 9:50 AM
ki.stfu retitled this revision from to Add -exec-abort command (MI); Don't exit on eStateExited.
ki.stfu updated this object.
ki.stfu edited the test plan for this revision. (Show Details)
ki.stfu added reviewers: abidh, clayborg, zturner, emaste.
ki.stfu added subscribers: abidh, clayborg, zturner and 2 others.
clayborg accepted this revision.Feb 20 2015, 10:08 AM
clayborg edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Feb 20 2015, 10:08 AM
abidh accepted this revision.Feb 23 2015, 1:50 AM
abidh edited edge metadata.

Looks ok apart from one small change.

tools/lldb-mi/MICmdCmdExec.h
349

Please remove the name as we discussed in an earlier patch.

In D7794#128149, @abidh wrote:

Looks ok apart from one small change.

Yep. Forgot to upload new patch, sorry. I'll commit it tomorrow.

ki.stfu updated this revision to Diff 20585.Feb 24 2015, 2:39 AM
ki.stfu edited edge metadata.

Remove Gotchas/Authors/Changes sections

ki.stfu closed this revision.Feb 24 2015, 2:42 AM