LLDB  mainline
Classes | Macros | Functions | Variables
CommandObjectLog.cpp File Reference
#include "CommandObjectLog.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Interpreter/OptionValueEnumeration.h"
#include "lldb/Interpreter/OptionValueUInt64.h"
#include "lldb/Interpreter/Options.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/Timer.h"
#include "CommandOptions.inc"
Include dependency graph for CommandObjectLog.cpp:

Go to the source code of this file.

Classes

class  CommandObjectLogEnable
 
class  CommandObjectLogEnable::CommandOptions
 
class  CommandObjectLogDisable
 
class  CommandObjectLogList
 
class  CommandObjectLogDump
 
class  CommandObjectLogDump::CommandOptions
 
class  CommandObjectLogTimerEnable
 
class  CommandObjectLogTimerDisable
 
class  CommandObjectLogTimerDump
 
class  CommandObjectLogTimerReset
 
class  CommandObjectLogTimerIncrement
 
class  CommandObjectLogTimer
 

Macros

#define LLDB_OPTIONS_log_enable
 
#define LLDB_OPTIONS_log_dump
 

Functions

static constexpr OptionEnumValues LogHandlerType ()
 
static void CompleteEnableDisable (CompletionRequest &request)
 Common completion logic for log enable/disable. More...
 

Variables

static constexpr OptionEnumValueElement g_log_handler_type []
 

Macro Definition Documentation

◆ LLDB_OPTIONS_log_dump

#define LLDB_OPTIONS_log_dump

Definition at line 59 of file CommandObjectLog.cpp.

◆ LLDB_OPTIONS_log_enable

#define LLDB_OPTIONS_log_enable

Definition at line 56 of file CommandObjectLog.cpp.

Function Documentation

◆ CompleteEnableDisable()

static void CompleteEnableDisable ( CompletionRequest request)
static

◆ LogHandlerType()

static constexpr OptionEnumValues LogHandlerType ( )
staticconstexpr

Definition at line 52 of file CommandObjectLog.cpp.

References g_log_handler_type.

Variable Documentation

◆ g_log_handler_type

constexpr OptionEnumValueElement g_log_handler_type[]
staticconstexpr
Initial value:
= {
{
"default",
"Use the default (stream) log handler",
},
{
"stream",
"Write log messages to the debugger output stream or to a file if one "
"is specified. A buffer size (in bytes) can be specified with -b. If "
"no buffer size is specified the output is unbuffered.",
},
{
"circular",
"Write log messages to a fixed size circular buffer. A buffer size "
"(number of messages) must be specified with -b.",
},
{
"os",
"Write log messages to the operating system log.",
},
}

Definition at line 26 of file CommandObjectLog.cpp.

Referenced by LogHandlerType().

lldb_private::eLogHandlerSystem
@ eLogHandlerSystem
Definition: lldb-private-enumerations.h:230
lldb_private::eLogHandlerCircular
@ eLogHandlerCircular
Definition: lldb-private-enumerations.h:229
lldb_private::eLogHandlerDefault
@ eLogHandlerDefault
Definition: lldb-private-enumerations.h:231
lldb_private::eLogHandlerStream
@ eLogHandlerStream
Definition: lldb-private-enumerations.h:227