This is an archive of the discontinued LLVM Phabricator instance.

[lldb-vscode] Don't use SBLaunchInfo in request_attach
ClosedPublic

Authored by anton.kolesov on Mar 18 2020, 3:35 AM.

Details

Summary

If LLDB attaches to an already running target, then structure SBAttachInfo is
used instead of SBLaunchInfo. lldb-vscode function request_attach sets some
values to g_vsc.launch_info, however this field is then not passed anywhere, so
this action has no effect. This commit removes invocation of
SBLaunchInfo::SetDetachOnError, which has no equivalent in SBAttachInfo.

File package.json doesn't describe detachOnError property for "attach" request
type, therefore it is not needed to update it.

Diff Detail

Event Timeline

anton.kolesov created this revision.Mar 18 2020, 3:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2020, 3:35 AM
labath accepted this revision.Mar 18 2020, 6:22 AM

sounds good.

This revision is now accepted and ready to land.Mar 18 2020, 6:22 AM
clayborg accepted this revision.Mar 18 2020, 2:44 PM

Yep, copy and paste error!

This revision was automatically updated to reflect the committed changes.