LLDB  mainline
Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
Debugger.cpp File Reference
#include "lldb/Core/Debugger.h"
#include "lldb/Breakpoint/Breakpoint.h"
#include "lldb/Core/FormatEntity.h"
#include "lldb/Core/Mangled.h"
#include "lldb/Core/ModuleList.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/StreamAsynchronousIO.h"
#include "lldb/Core/StreamFile.h"
#include "lldb/DataFormatters/DataVisualization.h"
#include "lldb/Expression/REPL.h"
#include "lldb/Host/File.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/Terminal.h"
#include "lldb/Host/ThreadLauncher.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Interpreter/OptionValue.h"
#include "lldb/Interpreter/OptionValueProperties.h"
#include "lldb/Interpreter/OptionValueSInt64.h"
#include "lldb/Interpreter/OptionValueString.h"
#include "lldb/Interpreter/Property.h"
#include "lldb/Interpreter/ScriptInterpreter.h"
#include "lldb/Symbol/Function.h"
#include "lldb/Symbol/Symbol.h"
#include "lldb/Symbol/SymbolContext.h"
#include "lldb/Target/Language.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/StructuredDataPlugin.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/TargetList.h"
#include "lldb/Target/Thread.h"
#include "lldb/Target/ThreadList.h"
#include "lldb/Utility/AnsiTerminal.h"
#include "lldb/Utility/Event.h"
#include "lldb/Utility/Listener.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Reproducer.h"
#include "lldb/Utility/State.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StreamCallback.h"
#include "lldb/Utility/StreamString.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Threading.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <list>
#include <memory>
#include <mutex>
#include <set>
#include <string>
#include <system_error>
#include "CoreProperties.inc"
#include "CorePropertiesEnum.inc"

Go to the source code of this file.

Namespaces

 lldb_private
 A class that represents a running process on the host machine.
 

Macros

#define LLDB_PROPERTIES_debugger
 
#define LLDB_PROPERTIES_debugger
 

Typedefs

typedef std::vector< DebuggerSP > DebuggerList
 

Enumerations

enum  
 

Functions

static FileSystem::EnumerateDirectoryResult LoadPluginCallback (void *baton, llvm::sys::fs::file_type ft, llvm::StringRef path)
 
static void PrivateReportProgress (Debugger &debugger, uint64_t progress_id, const std::string &message, uint64_t completed, uint64_t total, bool is_debugger_specific)
 

Variables

static lldb::user_id_t g_unique_id = 1
 
static size_t g_debugger_event_thread_stack_bytes = 8 * 1024 * 1024
 
static std::recursive_mutex * g_debugger_list_mutex_ptr
 
static DebuggerListg_debugger_list_ptr
 
static constexpr OptionEnumValueElement g_show_disassembly_enum_values []
 
static constexpr OptionEnumValueElement g_language_enumerators []
 
static constexpr OptionEnumValueElement s_stop_show_column_values []
 

Macro Definition Documentation

◆ LLDB_PROPERTIES_debugger [1/2]

#define LLDB_PROPERTIES_debugger

Definition at line 171 of file Debugger.cpp.

◆ LLDB_PROPERTIES_debugger [2/2]

#define LLDB_PROPERTIES_debugger

Definition at line 171 of file Debugger.cpp.

Typedef Documentation

◆ DebuggerList

typedef std::vector<DebuggerSP> DebuggerList

Definition at line 90 of file Debugger.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 170 of file Debugger.cpp.

Function Documentation

◆ LoadPluginCallback()

static FileSystem::EnumerateDirectoryResult LoadPluginCallback ( void *  baton,
llvm::sys::fs::file_type  ft,
llvm::StringRef  path 
)
static

◆ PrivateReportProgress()

static void PrivateReportProgress ( Debugger debugger,
uint64_t  progress_id,
const std::string message,
uint64_t  completed,
uint64_t  total,
bool  is_debugger_specific 
)
static

Variable Documentation

◆ g_debugger_event_thread_stack_bytes

size_t g_debugger_event_thread_stack_bytes = 8 * 1024 * 1024
static

Definition at line 86 of file Debugger.cpp.

Referenced by lldb_private::Debugger::StartEventHandlerThread().

◆ g_debugger_list_mutex_ptr

std::recursive_mutex* g_debugger_list_mutex_ptr
static

◆ g_debugger_list_ptr

DebuggerList* g_debugger_list_ptr
static

◆ g_language_enumerators

constexpr OptionEnumValueElement g_language_enumerators[]
staticconstexpr
Initial value:
= {
{
"none",
"Disable scripting languages.",
},
{
"python",
"Select python as the default scripting language.",
},
{
"default",
"Select the lldb default as the default scripting language.",
},
}

Definition at line 121 of file Debugger.cpp.

◆ g_show_disassembly_enum_values

constexpr OptionEnumValueElement g_show_disassembly_enum_values[]
staticconstexpr
Initial value:
= {
{
Debugger::eStopDisassemblyTypeNever,
"never",
"Never show disassembly when displaying a stop context.",
},
{
Debugger::eStopDisassemblyTypeNoDebugInfo,
"no-debuginfo",
"Show disassembly when there is no debug information.",
},
{
Debugger::eStopDisassemblyTypeNoSource,
"no-source",
"Show disassembly when there is no source information, or the source "
"file "
"is missing when displaying a stop context.",
},
{
Debugger::eStopDisassemblyTypeAlways,
"always",
"Always show disassembly when displaying a stop context.",
},
}

Definition at line 96 of file Debugger.cpp.

◆ g_unique_id

lldb::user_id_t g_unique_id = 1
static

Definition at line 85 of file Debugger.cpp.

◆ s_stop_show_column_values

constexpr OptionEnumValueElement s_stop_show_column_values[]
staticconstexpr
Initial value:
= {
{
"ansi-or-caret",
"Highlight the stop column with ANSI terminal codes when color/ANSI "
"mode is enabled; otherwise, fall back to using a text-only caret (^) "
"as if \"caret-only\" mode was selected.",
},
{
"ansi",
"Highlight the stop column with ANSI terminal codes when running LLDB "
"with color/ANSI enabled.",
},
{
"caret",
"Highlight the stop column with a caret character (^) underneath the "
"stop column. This method introduces a new line in source listings "
"that display thread stop locations.",
},
{
"none",
"Do not highlight the stop column.",
},
}

Definition at line 139 of file Debugger.cpp.

lldb::eScriptLanguageNone
@ eScriptLanguageNone
Definition: lldb-enumerations.h:217
lldb::eStopShowColumnCaret
@ eStopShowColumnCaret
Definition: lldb-enumerations.h:503
lldb::eStopShowColumnAnsiOrCaret
@ eStopShowColumnAnsiOrCaret
Definition: lldb-enumerations.h:501
lldb::eScriptLanguagePython
@ eScriptLanguagePython
Definition: lldb-enumerations.h:218
lldb::eStopShowColumnNone
@ eStopShowColumnNone
Definition: lldb-enumerations.h:504
lldb::eStopShowColumnAnsi
@ eStopShowColumnAnsi
Definition: lldb-enumerations.h:502
lldb::eScriptLanguageDefault
@ eScriptLanguageDefault
Definition: lldb-enumerations.h:221