This is an archive of the discontinued LLVM Phabricator instance.

[lldb/Interpreter] Open saved transcript in GUI Editor
ClosedPublic

Authored by mib on Oct 31 2022, 4:57 PM.

Details

Summary

This patch will automatically open LLDB's saved transcript file on the
graphical editor if lldb is running under an interactive graphical session.

This can be controlled by a new setting: interpreter.open-transcript-in-editor

rdar://92692106

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Diff Detail

Event Timeline

mib created this revision.Oct 31 2022, 4:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2022, 4:57 PM
mib requested review of this revision.Oct 31 2022, 4:57 PM
JDevlieghere accepted this revision.Oct 31 2022, 5:08 PM

Should this be controllable with a setting? I'm not sure I (always) want my editor to pop up when I save a transcript.

lldb/source/Interpreter/CommandInterpreter.cpp
3245

If we want to report the error we should should use AppendErrorMessage and return false, but personally I don't think this warrants failing the command for and I would just fail silently.

This revision is now accepted and ready to land.Oct 31 2022, 5:08 PM
mib updated this revision to Diff 472211.Oct 31 2022, 10:15 PM
mib marked an inline comment as done.
mib edited the summary of this revision. (Show Details)

Address @JDevlieghere comments

kastiglione accepted this revision.Nov 1 2022, 11:12 AM

looks good

This revision was automatically updated to reflect the committed changes.