This is an archive of the discontinued LLVM Phabricator instance.

[lldb-vscode] Fix handling of RestartRequest arguments.
ClosedPublic

Authored by jgorbe on May 11 2023, 12:12 PM.

Details

Summary

According to the spec, RestartRequest has an optional "arguments" field, which
is a RestartArguments object. RestartArguments has its own optional "arguments"
field, which is a (LaunchRequestArguments | AttachRequestArguments) object. So
we need to to the "arguments" lookup twice to get to the actual launch
arguments.

Diff Detail

Event Timeline

jgorbe created this revision.May 11 2023, 12:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2023, 12:12 PM
jgorbe requested review of this revision.May 11 2023, 12:12 PM

Is there a test case you can add for this?

jgorbe updated this revision to Diff 521412.May 11 2023, 12:42 PM

Added test case.

rupprecht accepted this revision.May 11 2023, 12:48 PM
This revision is now accepted and ready to land.May 11 2023, 12:48 PM
This revision was automatically updated to reflect the committed changes.