llvm-project/lldb/source/Commands
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 [Commands] Add a (currently empty) `stats` command. 2018-03-23 21:55:48 +00:00
CommandCompletions.cpp NFC: Move Searcher::Depth into lldb-enumerations as SearchDepth. 2018-09-07 18:43:04 +00:00
CommandObjectApropos.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
CommandObjectApropos.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectBreakpoint.cpp Don't type-erase the FunctionNameType or TypeClass enums. 2018-10-25 20:45:40 +00:00
CommandObjectBreakpoint.h Make breakpoint names real entities. 2017-09-14 20:22:49 +00:00
CommandObjectBreakpointCommand.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectBreakpointCommand.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectBugreport.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectBugreport.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectCommands.cpp Add EchoCommentCommands to CommandInterpreterRunOptions in addition to the existing EchoCommands and expose both as interpreter settings. 2018-10-05 16:49:47 +00:00
CommandObjectCommands.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectDisassemble.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectDisassemble.h Clean-up usage of OptionDefinition arrays 2018-09-28 17:58:16 +00:00
CommandObjectExpression.cpp Revert "Return a named error in the result object of an expression with no result" 2018-10-18 03:10:43 +00:00
CommandObjectExpression.h Clean-up usage of OptionDefinition arrays 2018-09-28 17:58:16 +00:00
CommandObjectFrame.cpp Add "var" and "vo" aliases for "frame variable" and "frame variable -O". 2018-10-10 00:51:30 +00:00
CommandObjectFrame.h Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
CommandObjectGUI.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectGUI.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectHelp.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectHelp.h Refactoring for for the internal command line completion API (NFC) 2018-07-02 21:29:56 +00:00
CommandObjectLanguage.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectLanguage.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectLog.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectLog.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectMemory.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectMemory.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectMultiword.cpp Add support for descriptions with command completions. 2018-09-13 21:26:00 +00:00
CommandObjectPlatform.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectPlatform.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectPlugin.cpp Narrow the CompletionRequest API to being append-only. 2018-07-27 18:42:46 +00:00
CommandObjectPlugin.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectProcess.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectProcess.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectQuit.cpp Remove duplicated code in CommandObjectQuit 2018-08-06 00:04:51 +00:00
CommandObjectQuit.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectRegister.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectRegister.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectSettings.cpp Add functionality to export settings 2018-10-26 00:00:17 +00:00
CommandObjectSettings.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectSource.cpp Don't type-erase the SymbolContextItem enumeration. 2018-10-25 20:45:19 +00:00
CommandObjectSource.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectStats.cpp [Statistics] Move GetStatDescription to an header file. 2018-04-16 18:25:57 +00:00
CommandObjectStats.h [Command] Implement `statistics` command. 2018-04-13 18:02:39 +00:00
CommandObjectTarget.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectTarget.h Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
CommandObjectThread.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectThread.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectType.cpp Re-commit r343500 "Fix build with GCC < 5.0 (PR39131)" 2018-10-04 11:39:55 +00:00
CommandObjectType.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectVersion.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectVersion.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectWatchpoint.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectWatchpoint.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectWatchpointCommand.cpp Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
CommandObjectWatchpointCommand.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00