This patch introduce a new feature that allows the users to save their debugging session's transcript (commands + outputs) to a file. It differs from the reproducers since it doesn't require to capture a session preemptively and replay the reproducer file in lldb. The user can choose the save its session manually using the session save command or automatically by setting the interpreter.save-session-on-quit on their init file. To do so, the patch adds a Stream object to the CommandInterpreter that will hold the input command from the IOHandler and the CommandReturnObject output and error. This way, that stream object accumulates passively all the interactions throughout the session and will save them to disk on demand. The user can specify a file path where the session's transcript will be saved. However, it is optional, and when it is not provided, lldb will create a temporary file name according to the session date and time. rdar://63347792 Differential Revision: https://reviews.llvm.org/D82155 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
33 lines
1.5 KiB
TableGen
33 lines
1.5 KiB
TableGen
include "../../include/lldb/Core/PropertiesBase.td"
|
|
|
|
let Definition = "interpreter" in {
|
|
def ExpandRegexAliases: Property<"expand-regex-aliases", "Boolean">,
|
|
Global,
|
|
DefaultFalse,
|
|
Desc<"If true, regular expression alias commands will show the expanded command that will be executed. This can be used to debug new regular expression alias commands.">;
|
|
def PromptOnQuit: Property<"prompt-on-quit", "Boolean">,
|
|
Global,
|
|
DefaultTrue,
|
|
Desc<"If true, LLDB will prompt you before quitting if there are any live processes being debugged. If false, LLDB will quit without asking in any case.">;
|
|
def SaveSessionOnQuit: Property<"save-session-on-quit", "Boolean">,
|
|
Global,
|
|
DefaultFalse,
|
|
Desc<"If true, LLDB will save the session's transcripts before quitting.">;
|
|
def StopCmdSourceOnError: Property<"stop-command-source-on-error", "Boolean">,
|
|
Global,
|
|
DefaultTrue,
|
|
Desc<"If true, LLDB will stop running a 'command source' script upon encountering an error.">;
|
|
def SpaceReplPrompts: Property<"space-repl-prompts", "Boolean">,
|
|
Global,
|
|
DefaultFalse,
|
|
Desc<"If true, blank lines will be printed between between REPL submissions.">;
|
|
def EchoCommands: Property<"echo-commands", "Boolean">,
|
|
Global,
|
|
DefaultTrue,
|
|
Desc<"If true, commands will be echoed before they are evaluated.">;
|
|
def EchoCommentCommands: Property<"echo-comment-commands", "Boolean">,
|
|
Global,
|
|
DefaultTrue,
|
|
Desc<"If true, commands will be echoed even if they are pure comment lines.">;
|
|
}
|