LLDB/GDB plugin: add support for coredumpctl in unittests, and fix LldbTest::testCoreFile
ClosedPublic

Authored by qi437103 on Aug 27 2016, 3:40 PM.

Details

Summary

In case a coredump file wasn't generated directly, try to invoke coredumpctl to get it.
Also, this patch fixes debug session hanging on starting state when use LLDB as backend.

Test Plan

GdbTest::testCoreFile and LldbTest::testCoreFile

Diff Detail

Repository
R32 KDevelop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
qi437103 updated this revision to Diff 6321.Aug 27 2016, 3:40 PM
qi437103 retitled this revision from to LLDB/GDB plugin: add support for coredumpctl in unittests, and fix LldbTest::testCoreFile.
qi437103 updated this object.
qi437103 edited the test plan for this revision. (Show Details)
qi437103 added a reviewer: kfunk.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptAug 27 2016, 3:40 PM
mwolff accepted this revision.Sep 5 2016, 3:07 PM
mwolff added a reviewer: mwolff.
mwolff added a subscriber: mwolff.

seems to be fine to me, thanks!

debuggers/lldb/unittests/test_lldb.cpp
1323

can we share that code somewhere? but not that important

This revision is now accepted and ready to land.Sep 5 2016, 3:07 PM
qi437103 added inline comments.Sep 5 2016, 3:21 PM
debuggers/lldb/unittests/test_lldb.cpp
1323

AFAIK, it's only used in gdb and lldb unit tests. Sharing it seems a bit overkill to me.

This revision was automatically updated to reflect the committed changes.