This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Support SaveCore() from gdb-remote client
ClosedPublic

Authored by mgorny on Apr 26 2021, 3:04 PM.

Details

Summary

Extend PluginManager::SaveCore() to support saving core dumps
via Process plugins. Implement the client-side part of qSaveCore
request in the gdb-remote plugin, that creates the core dump
on the remote host and then uses vFile packets to transfer it.

Diff Detail

Event Timeline

mgorny requested review of this revision.Apr 26 2021, 3:04 PM
mgorny created this revision.
mgorny retitled this revision from [lldb] Support SaveCore() from gdb-remote client to [lldb] Support SaveCore() from gdb-remote client [WIP].

I need to implement path hints and add tests still.

mgorny updated this revision to Diff 341132.Apr 28 2021, 3:50 AM

Send path-hint to the server. Add a test.

mgorny retitled this revision from [lldb] Support SaveCore() from gdb-remote client [WIP] to [lldb] Support SaveCore() from gdb-remote client.May 1 2021, 1:14 PM
mgorny updated this revision to Diff 370908.Sep 6 2021, 6:30 AM

Rebased.

krytarowski accepted this revision.Sep 6 2021, 7:51 AM

Looks correct.

This revision is now accepted and ready to land.Sep 6 2021, 7:51 AM
This revision was landed with ongoing or failed builds.Sep 6 2021, 9:33 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2021, 9:33 AM