llvm-project/lldb/source/Interpreter
Jonas Devlieghere b76e25a26d Add functionality to export settings
For the reproducer feature I need to be able to export and import the
current LLDB configuration. To realize this I've extended the existing
functionality to print settings. With the help of a new formatting
option, we can now write the settings and their values to a file
structured as regular commands.

Concretely the functionality works as follows:

  (lldb) settings export -f /path/to/file

This file contains a bunch of settings set commands, followed by the
setting's name and value.

  ...
  settings set use-external-editor false
  settings set use-color true
  settings set auto-one-line-summaries true
  settings set auto-indent true
  ...

You can import the settings again by either sourcing the file or using
the settings read command.

  (lldb) settings read -f /path/to/file

Differential revision: https://reviews.llvm.org/D52651

llvm-svn: 345346
2018-10-26 00:00:17 +00:00
..
CMakeLists.txt build: add libedit to include paths 2018-09-21 18:34:41 +00:00
CommandAlias.cpp Refactoring for for the internal command line completion API (NFC) 2018-07-02 21:29:56 +00:00
CommandHistory.cpp Fix !N and !-N commands and add a test case. 2017-04-19 23:21:04 +00:00
CommandInterpreter.cpp Add "v" as well as "var" as an alias for "frame var". 2018-10-12 18:46:02 +00:00
CommandObject.cpp Narrow the CompletionRequest API to being append-only. 2018-07-27 18:42:46 +00:00
CommandObjectRegexCommand.cpp Narrow the CompletionRequest API to being append-only. 2018-07-27 18:42:46 +00:00
CommandObjectScript.cpp Get rid of the C-string parameter in DoExecute 2018-07-12 22:28:52 +00:00
CommandObjectScript.h Get rid of the C-string parameter in DoExecute 2018-07-12 22:28:52 +00:00
CommandOptionValidators.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandReturnObject.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionArgParser.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupArchitecture.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupBoolean.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupFile.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupFormat.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupOutputFile.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupPlatform.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupString.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupUInt64.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupUUID.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupValueObjectDisplay.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupVariable.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionGroupWatchpoint.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionValue.cpp Narrow the CompletionRequest API to being append-only. 2018-07-27 18:42:46 +00:00
OptionValueArch.cpp Move RegisterValue,Scalar,State from Core to Utility 2018-08-07 11:07:21 +00:00
OptionValueArgs.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueArray.cpp Add functionality to export settings 2018-10-26 00:00:17 +00:00
OptionValueBoolean.cpp Narrow the CompletionRequest API to being append-only. 2018-07-27 18:42:46 +00:00
OptionValueChar.cpp Move Args::StringTo*** functions to a new OptionArgParser class 2018-04-10 09:03:59 +00:00
OptionValueDictionary.cpp Add functionality to export settings 2018-10-26 00:00:17 +00:00
OptionValueEnumeration.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
OptionValueFileSpec.cpp Move RegisterValue,Scalar,State from Core to Utility 2018-08-07 11:07:21 +00:00
OptionValueFileSpecLIst.cpp Add functionality to export settings 2018-10-26 00:00:17 +00:00
OptionValueFormat.cpp Move Args::StringTo*** functions to a new OptionArgParser class 2018-04-10 09:03:59 +00:00
OptionValueFormatEntity.cpp Add functionality to export settings 2018-10-26 00:00:17 +00:00
OptionValueLanguage.cpp Add functionality to export settings 2018-10-26 00:00:17 +00:00
OptionValuePathMappings.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueProperties.cpp Replace pointer to C-array of PropertyDefinition with llvm::ArrayRef 2018-09-27 07:11:58 +00:00
OptionValueRegex.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionValueSInt64.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionValueString.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueUInt64.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionValueUUID.cpp Narrow the CompletionRequest API to being append-only. 2018-07-27 18:42:46 +00:00
Options.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
Property.cpp Add functionality to export settings 2018-10-26 00:00:17 +00:00
ScriptInterpreter.cpp [Interpreter] Simplify else after return. NFCI. 2017-09-03 19:27:56 +00:00
embedded_interpreter.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00