This is an archive of the discontinued LLVM Phabricator instance.

[lldb/Interpreter] Add setting to set session transcript save directory
ClosedPublic

Authored by mib on Jun 28 2021, 7:26 AM.

Details

Summary

This patch introduces a new interpreter setting
interpreter.save-session-directory so the user can specify a directory
where the session transcripts will be saved.

If not set, the session transcript are saved on a temporary file.

rdar://72902842

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

Diff Detail

Event Timeline

mib requested review of this revision.Jun 28 2021, 7:26 AM
mib created this revision.
JDevlieghere added inline comments.Jun 28 2021, 8:35 AM
lldb/source/Interpreter/InterpreterProperties.td
18

Given that session save already takes a file, I think it would make sense to call out here that this is particularly useful in combination with save-session-on-quit.

mib added inline comments.Jun 28 2021, 8:43 AM
lldb/source/Interpreter/InterpreterProperties.td
18

Just to clarify, session save can be used with no arguments, in which case, the transcript will either be saved to a temporary folder or at the location set in this property.

But I can definitely mention that it is very useful with save-session-on-quit.

mib updated this revision to Diff 354916.Jun 28 2021, 8:49 AM

Address @JDevlieghere comment

JDevlieghere accepted this revision.Jun 28 2021, 10:14 AM

LGTM

lldb/source/Interpreter/InterpreterProperties.td
18

Sure, I just want to make it explicit that we're not just adding a second way to do the same thing (but that it's actually covering a use case we can't support today).

18
This revision is now accepted and ready to land.Jun 28 2021, 10:14 AM
vsk added a subscriber: vsk.Jun 28 2021, 10:18 AM

I love the save-session feature. Just checking, has it already been release-noted on llvm.org (and for that matter Xcode)?

mib updated this revision to Diff 354950.Jun 28 2021, 10:43 AM
mib marked 3 inline comments as done.

Rephrase setting description

mib added a comment.Jun 28 2021, 10:45 AM

I love the save-session feature. Just checking, has it already been release-noted on llvm.org (and for that matter Xcode)?

Glad you like it @vsk ! I don't think it was on the release note (at lease for Xcode) ... may be it would be good to mention it 😊

This revision was landed with ongoing or failed builds.Jun 29 2021, 1:54 AM
This revision was automatically updated to reflect the committed changes.