LLDB  mainline
Namespaces | Macros | Enumerations | Functions | Variables
FormatEntity.cpp File Reference
#include "lldb/Core/FormatEntity.h"
#include "lldb/Core/Address.h"
#include "lldb/Core/AddressRange.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/DumpRegisterValue.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ValueObject.h"
#include "lldb/Core/ValueObjectVariable.h"
#include "lldb/DataFormatters/DataVisualization.h"
#include "lldb/DataFormatters/FormatClasses.h"
#include "lldb/DataFormatters/FormatManager.h"
#include "lldb/DataFormatters/TypeSummary.h"
#include "lldb/Expression/ExpressionVariable.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Symbol/Block.h"
#include "lldb/Symbol/CompileUnit.h"
#include "lldb/Symbol/CompilerType.h"
#include "lldb/Symbol/Function.h"
#include "lldb/Symbol/LineEntry.h"
#include "lldb/Symbol/Symbol.h"
#include "lldb/Symbol/SymbolContext.h"
#include "lldb/Symbol/VariableList.h"
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Target/ExecutionContextScope.h"
#include "lldb/Target/Language.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/SectionLoadList.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/StopInfo.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/AnsiTerminal.h"
#include "lldb/Utility/ArchSpec.h"
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Logging.h"
#include "lldb/Utility/RegisterValue.h"
#include "lldb/Utility/SharingPtr.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/Utility/StringList.h"
#include "lldb/Utility/StructuredData.h"
#include "lldb/lldb-defines.h"
#include "lldb/lldb-forward.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/Compiler.h"
#include <ctype.h>
#include <inttypes.h>
#include <memory>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

 lldb_private
 Enumerations for broadcasting.
 

Macros

#define ENTRY(n, t)   { n, nullptr, FormatEntity::Entry::Type::t, 0, 0, nullptr, false }
 
#define ENTRY_VALUE(n, t, v)   { n, nullptr, FormatEntity::Entry::Type::t, v, 0, nullptr, false }
 
#define ENTRY_CHILDREN(n, t, c)
 
#define ENTRY_CHILDREN_KEEP_SEP(n, t, c)
 
#define ENTRY_STRING(n, s)   { n, s, FormatEntity::Entry::Type::InsertString, 0, 0, nullptr, false }
 
#define _TO_STR2(_val)   #_val
 
#define _TO_STR(_val)   _TO_STR2(_val)
 
#define ENUM_TO_CSTR(eee)
 

Enumerations

enum  FileKind { FileError = 0, Basename, Dirname, Fullpath }
 

Functions

template<typename T >
static bool RunScriptFormatKeyword (Stream &s, const SymbolContext *sc, const ExecutionContext *exe_ctx, T t, const char *script_function_name)
 
static bool DumpAddress (Stream &s, const SymbolContext *sc, const ExecutionContext *exe_ctx, const Address &addr, bool print_file_addr_or_load_addr)
 
static bool DumpAddressOffsetFromFunction (Stream &s, const SymbolContext *sc, const ExecutionContext *exe_ctx, const Address &format_addr, bool concrete_only, bool no_padding, bool print_zero_offsets)
 
static bool ScanBracketedRange (llvm::StringRef subpath, size_t &close_bracket_index, const char *&var_name_final_if_array_range, int64_t &index_lower, int64_t &index_higher)
 
static bool DumpFile (Stream &s, const FileSpec &file, FileKind file_kind)
 
static bool DumpRegister (Stream &s, StackFrame *frame, RegisterKind reg_kind, uint32_t reg_num, Format format)
 
static ValueObjectSP ExpandIndexedExpression (ValueObject *valobj, size_t index, StackFrame *frame, bool deref_pointer)
 
static char ConvertValueObjectStyleToChar (ValueObject::ValueObjectRepresentationStyle style)
 
static bool DumpValue (Stream &s, const SymbolContext *sc, const ExecutionContext *exe_ctx, const FormatEntity::Entry &entry, ValueObject *valobj)
 
static bool DumpRegister (Stream &s, StackFrame *frame, const char *reg_name, Format format)
 
static bool FormatThreadExtendedInfoRecurse (const FormatEntity::Entry &entry, const StructuredData::ObjectSP &thread_info_dictionary, const SymbolContext *sc, const ExecutionContext *exe_ctx, Stream &s)
 
static bool IsToken (const char *var_name_begin, const char *var)
 
static bool DumpCommaSeparatedChildEntryNames (Stream &s, const FormatEntity::Entry::Definition *parent)
 
static Status ParseEntry (const llvm::StringRef &format_str, const FormatEntity::Entry::Definition *parent, FormatEntity::Entry &entry)
 
static const FormatEntity::Entry::DefinitionFindEntry (const llvm::StringRef &format_str, const FormatEntity::Entry::Definition *parent, llvm::StringRef &remainder)
 
static std::string MakeMatch (const llvm::StringRef &prefix, const char *suffix)
 
static void AddMatches (const FormatEntity::Entry::Definition *def, const llvm::StringRef &prefix, const llvm::StringRef &match_prefix, StringList &matches)
 

Variables

static FormatEntity::Entry::Definition g_string_entry []
 
static FormatEntity::Entry::Definition g_addr_entries []
 
static FormatEntity::Entry::Definition g_file_child_entries []
 
static FormatEntity::Entry::Definition g_frame_child_entries []
 
static FormatEntity::Entry::Definition g_function_child_entries []
 
static FormatEntity::Entry::Definition g_line_child_entries []
 
static FormatEntity::Entry::Definition g_module_child_entries []
 
static FormatEntity::Entry::Definition g_process_child_entries []
 
static FormatEntity::Entry::Definition g_svar_child_entries []
 
static FormatEntity::Entry::Definition g_var_child_entries []
 
static FormatEntity::Entry::Definition g_thread_child_entries []
 
static FormatEntity::Entry::Definition g_target_child_entries []
 
static FormatEntity::Entry::Definition g_ansi_fg_entries []
 
static FormatEntity::Entry::Definition g_ansi_bg_entries []
 
static FormatEntity::Entry::Definition g_ansi_entries []
 
static FormatEntity::Entry::Definition g_script_child_entries []
 
static FormatEntity::Entry::Definition g_top_level_entries []
 
static FormatEntity::Entry::Definition g_root
 

Macro Definition Documentation

◆ _TO_STR

#define _TO_STR (   _val)    _TO_STR2(_val)

Definition at line 177 of file FormatEntity.cpp.

◆ _TO_STR2

#define _TO_STR2 (   _val)    #_val

Definition at line 176 of file FormatEntity.cpp.

◆ ENTRY

#define ENTRY (   n,
 
)    { n, nullptr, FormatEntity::Entry::Type::t, 0, 0, nullptr, false }

Definition at line 82 of file FormatEntity.cpp.

◆ ENTRY_CHILDREN

#define ENTRY_CHILDREN (   n,
  t,
 
)
Value:
{ \
n, nullptr, FormatEntity::Entry::Type::t, 0, \
static_cast<uint32_t>(llvm::array_lengthof(c)), c, false \
}

Definition at line 86 of file FormatEntity.cpp.

◆ ENTRY_CHILDREN_KEEP_SEP

#define ENTRY_CHILDREN_KEEP_SEP (   n,
  t,
 
)
Value:
{ \
n, nullptr, FormatEntity::Entry::Type::t, 0, \
static_cast<uint32_t>(llvm::array_lengthof(c)), c, true \
}

Definition at line 91 of file FormatEntity.cpp.

◆ ENTRY_STRING

#define ENTRY_STRING (   n,
 
)    { n, s, FormatEntity::Entry::Type::InsertString, 0, 0, nullptr, false }

Definition at line 96 of file FormatEntity.cpp.

◆ ENTRY_VALUE

#define ENTRY_VALUE (   n,
  t,
 
)    { n, nullptr, FormatEntity::Entry::Type::t, v, 0, nullptr, false }

Definition at line 84 of file FormatEntity.cpp.

◆ ENUM_TO_CSTR

#define ENUM_TO_CSTR (   eee)
Value:
case FormatEntity::Entry::Type::eee: \
return #eee

Definition at line 301 of file FormatEntity.cpp.

Referenced by lldb_private::FormatEntity::Entry::TypeToCString().

Enumeration Type Documentation

◆ FileKind

enum FileKind
Enumerator
FileError 
Basename 
Dirname 
Fullpath 

Definition at line 80 of file FormatEntity.cpp.

Function Documentation

◆ AddMatches()

static void AddMatches ( const FormatEntity::Entry::Definition def,
const llvm::StringRef &  prefix,
const llvm::StringRef &  match_prefix,
StringList matches 
)
static

◆ ConvertValueObjectStyleToChar()

static char ConvertValueObjectStyleToChar ( ValueObject::ValueObjectRepresentationStyle  style)
static

◆ DumpAddress()

static bool DumpAddress ( Stream s,
const SymbolContext sc,
const ExecutionContext exe_ctx,
const Address addr,
bool  print_file_addr_or_load_addr 
)
static

◆ DumpAddressOffsetFromFunction()

static bool DumpAddressOffsetFromFunction ( Stream s,
const SymbolContext sc,
const ExecutionContext exe_ctx,
const Address format_addr,
bool  concrete_only,
bool  no_padding,
bool  print_zero_offsets 
)
static

◆ DumpCommaSeparatedChildEntryNames()

static bool DumpCommaSeparatedChildEntryNames ( Stream s,
const FormatEntity::Entry::Definition parent 
)
static

◆ DumpFile()

static bool DumpFile ( Stream s,
const FileSpec file,
FileKind  file_kind 
)
static

◆ DumpRegister() [1/2]

static bool DumpRegister ( Stream s,
StackFrame frame,
RegisterKind  reg_kind,
uint32_t  reg_num,
Format  format 
)
static

◆ DumpRegister() [2/2]

static bool DumpRegister ( Stream s,
StackFrame frame,
const char *  reg_name,
Format  format 
)
static

◆ DumpValue()

static bool DumpValue ( Stream s,
const SymbolContext sc,
const ExecutionContext exe_ctx,
const FormatEntity::Entry entry,
ValueObject valobj 
)
static

Definition at line 679 of file FormatEntity.cpp.

References lldb_private::Status::AsCString(), lldb_private::ConstString::AsCString(), ConvertValueObjectStyleToChar(), lldb_private::FormatEntity::Entry::deref, lldb_private::ValueObject::Dereference(), lldb_private::ValueObject::GetValueForExpressionPathOptions::DoAllowBitfieldSyntax(), lldb_private::ValueObject::GetValueForExpressionPathOptions::DoAllowFragileIVar(), lldb_private::ValueObject::GetValueForExpressionPathOptions::DontCheckDotVsArrowSyntax(), lldb_private::ValueObject::DumpPrintableRepresentation(), lldb_private::ValueObject::eDisable, lldb_private::ValueObject::eExpressionPathAftermathDereference, lldb_private::ValueObject::eExpressionPathAftermathNothing, lldb_private::ValueObject::eExpressionPathEndResultTypeBoundedRange, lldb_private::ValueObject::eExpressionPathEndResultTypePlain, lldb_private::ValueObject::eExpressionPathEndResultTypeUnboundedRange, lldb_private::ValueObject::eExpressionPathScanEndReasonEndOfString, lldb::eFormatDefault, lldb::eFormatInvalid, lldb_private::ValueObject::eValueObjectRepresentationStyleSummary, lldb_private::ValueObject::eValueObjectRepresentationStyleValue, ExpandIndexedExpression(), lldb_private::Status::Fail(), lldb_private::FormatEntity::Entry::fmt, lldb_private::FormatEntity::FormatStringRef(), lldb_private::ValueObject::GetBitfieldBitSize(), lldb_private::ValueObject::GetCompilerType(), lldb_private::ValueObject::GetDynamicValueType(), lldb_private::FormatManager::GetFormatAsCString(), lldb_private::FormatManager::GetFormatAsFormatChar(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ValueObject::GetLocationAsCString(), lldb_private::GetLogIfAllCategoriesSet(), lldb_private::ValueObject::GetNumChildren(), lldb_private::ValueObject::GetQualifiedRepresentationIfAvailable(), lldb_private::StreamString::GetString(), lldb_private::DataVisualization::GetSummaryForType(), lldb_private::ValueObject::GetSyntheticValue(), lldb_private::ValueObject::GetTargetSP(), lldb_private::CompilerType::GetTypeInfo(), lldb_private::ValueObject::GetTypeName(), lldb_private::ValueObject::GetValueForExpressionPath(), lldb_private::ValueObject::HasSpecialPrintableRepresentation(), lldb_private::CompilerType::IsAggregateType(), lldb_private::ValueObject::IsBitfield(), lldb_private::ValueObject::IsSynthetic(), LIBLLDB_LOG_DATAFORMATTERS, lldb_private::FormatEntity::Entry::number, lldb_private::Log::Printf(), lldb_private::Stream::Printf(), lldb_private::FormatEntity::Entry::printf_format, lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), RunScriptFormatKeyword(), ScanBracketedRange(), lldb_private::FormatEntity::Entry::ScriptVariable, lldb_private::FormatEntity::Entry::ScriptVariableSynthetic, lldb_private::ValueObject::GetValueForExpressionPathOptions::SetSyntheticChildrenTraversal(), lldb_private::FormatEntity::Entry::string, lldb_private::FormatEntity::Entry::type, lldb_private::FormatEntity::Entry::Variable, and lldb_private::FormatEntity::Entry::VariableSynthetic.

Referenced by lldb_private::FormatEntity::Format(), and lldb_private::Type::GetName().

◆ ExpandIndexedExpression()

static ValueObjectSP ExpandIndexedExpression ( ValueObject valobj,
size_t  index,
StackFrame frame,
bool  deref_pointer 
)
static

◆ FindEntry()

static const FormatEntity::Entry::Definition* FindEntry ( const llvm::StringRef &  format_str,
const FormatEntity::Entry::Definition parent,
llvm::StringRef &  remainder 
)
static

◆ FormatThreadExtendedInfoRecurse()

static bool FormatThreadExtendedInfoRecurse ( const FormatEntity::Entry entry,
const StructuredData::ObjectSP thread_info_dictionary,
const SymbolContext sc,
const ExecutionContext exe_ctx,
Stream s 
)
static

◆ IsToken()

static bool IsToken ( const char *  var_name_begin,
const char *  var 
)
inlinestatic

Definition at line 1056 of file FormatEntity.cpp.

Referenced by lldb_private::FormatEntity::Format().

◆ MakeMatch()

static std::string MakeMatch ( const llvm::StringRef &  prefix,
const char *  suffix 
)
static

Definition at line 2329 of file FormatEntity.cpp.

Referenced by AddMatches(), and lldb_private::FormatEntity::AutoComplete().

◆ ParseEntry()

static Status ParseEntry ( const llvm::StringRef &  format_str,
const FormatEntity::Entry::Definition parent,
FormatEntity::Entry entry 
)
static

◆ RunScriptFormatKeyword()

template<typename T >
static bool RunScriptFormatKeyword ( Stream s,
const SymbolContext sc,
const ExecutionContext exe_ctx,
t,
const char *  script_function_name 
)
static

◆ ScanBracketedRange()

static bool ScanBracketedRange ( llvm::StringRef  subpath,
size_t &  close_bracket_index,
const char *&  var_name_final_if_array_range,
int64_t &  index_lower,
int64_t &  index_higher 
)
static

Variable Documentation

◆ g_addr_entries

FormatEntity::Entry::Definition g_addr_entries[]
static
Initial value:
= {
ENTRY("load", AddressLoad),
ENTRY("file", AddressFile),
ENTRY("load", AddressLoadOrFile),
}
#define ENTRY(n, t)

Definition at line 101 of file FormatEntity.cpp.

◆ g_ansi_bg_entries

FormatEntity::Entry::Definition g_ansi_bg_entries[]
static
Initial value:
= {
ENTRY_STRING("black",
ENTRY_STRING("green",
ENTRY_STRING("yellow",
ENTRY_STRING("blue",
ENTRY_STRING("purple",
ENTRY_STRING("cyan",
ENTRY_STRING("white",
}
#define ENTRY_STRING(n, s)
#define ANSI_BG_COLOR_PURPLE
Definition: AnsiTerminal.h:23
#define ANSI_BG_COLOR_BLACK
Definition: AnsiTerminal.h:18
#define ANSI_BG_COLOR_WHITE
Definition: AnsiTerminal.h:25
#define ANSI_BG_COLOR_YELLOW
Definition: AnsiTerminal.h:21
#define ANSI_BG_COLOR_RED
Definition: AnsiTerminal.h:19
#define ANSI_ESC_START
Definition: AnsiTerminal.h:41
#define _TO_STR(_val)
#define ANSI_ESC_END
Definition: AnsiTerminal.h:42
#define ANSI_BG_COLOR_GREEN
Definition: AnsiTerminal.h:20
#define ANSI_BG_COLOR_BLUE
Definition: AnsiTerminal.h:22
#define ANSI_BG_COLOR_CYAN
Definition: AnsiTerminal.h:24

Definition at line 197 of file FormatEntity.cpp.

◆ g_ansi_entries

FormatEntity::Entry::Definition g_ansi_entries[]
static
Initial value:
= {
ENTRY_STRING("normal",
ENTRY_STRING("italic",
ENTRY_STRING("underline",
ENTRY_STRING("slow-blink",
ENTRY_STRING("fast-blink",
ENTRY_STRING("negative",
ENTRY_STRING("conceal",
ENTRY_STRING("crossed-out",
}
#define ENTRY_STRING(n, s)
#define ANSI_CTRL_BOLD
Definition: AnsiTerminal.h:31
#define ANSI_CTRL_CONCEAL
Definition: AnsiTerminal.h:38
#define ANSI_CTRL_ITALIC
Definition: AnsiTerminal.h:33
#define ENTRY_CHILDREN(n, t, c)
#define ANSI_CTRL_NORMAL
Definition: AnsiTerminal.h:30
#define ANSI_CTRL_FAINT
Definition: AnsiTerminal.h:32
#define ANSI_CTRL_UNDERLINE
Definition: AnsiTerminal.h:34
#define ANSI_CTRL_CROSSED_OUT
Definition: AnsiTerminal.h:39
static FormatEntity::Entry::Definition g_ansi_fg_entries[]
#define ANSI_ESC_START
Definition: AnsiTerminal.h:41
#define _TO_STR(_val)
#define ANSI_CTRL_IMAGE_NEGATIVE
Definition: AnsiTerminal.h:37
#define ANSI_ESC_END
Definition: AnsiTerminal.h:42
#define ANSI_CTRL_FAST_BLINK
Definition: AnsiTerminal.h:36
#define ANSI_CTRL_SLOW_BLINK
Definition: AnsiTerminal.h:35
static FormatEntity::Entry::Definition g_ansi_bg_entries[]

Definition at line 215 of file FormatEntity.cpp.

◆ g_ansi_fg_entries

FormatEntity::Entry::Definition g_ansi_fg_entries[]
static
Initial value:
= {
ENTRY_STRING("black",
ENTRY_STRING("green",
ENTRY_STRING("yellow",
ENTRY_STRING("blue",
ENTRY_STRING("purple",
ENTRY_STRING("cyan",
ENTRY_STRING("white",
}
#define ANSI_FG_COLOR_GREEN
Definition: AnsiTerminal.h:11
#define ANSI_FG_COLOR_YELLOW
Definition: AnsiTerminal.h:12
#define ENTRY_STRING(n, s)
#define ANSI_FG_COLOR_RED
Definition: AnsiTerminal.h:10
#define ANSI_FG_COLOR_PURPLE
Definition: AnsiTerminal.h:14
#define ANSI_FG_COLOR_CYAN
Definition: AnsiTerminal.h:15
#define ANSI_FG_COLOR_BLACK
Definition: AnsiTerminal.h:9
#define ANSI_ESC_START
Definition: AnsiTerminal.h:41
#define _TO_STR(_val)
#define ANSI_ESC_END
Definition: AnsiTerminal.h:42
#define ANSI_FG_COLOR_WHITE
Definition: AnsiTerminal.h:16
#define ANSI_FG_COLOR_BLUE
Definition: AnsiTerminal.h:13

Definition at line 179 of file FormatEntity.cpp.

◆ g_file_child_entries

FormatEntity::Entry::Definition g_file_child_entries[]
static
Initial value:
= {
ENTRY_VALUE("basename", ParentNumber, FileKind::Basename),
ENTRY_VALUE("dirname", ParentNumber, FileKind::Dirname),
ENTRY_VALUE("fullpath", ParentNumber, FileKind::Fullpath)}
#define ENTRY_VALUE(n, t, v)

Definition at line 107 of file FormatEntity.cpp.

◆ g_frame_child_entries

FormatEntity::Entry::Definition g_frame_child_entries[]
static
Initial value:
= {
ENTRY("index", FrameIndex),
ENTRY("pc", FrameRegisterPC),
ENTRY("fp", FrameRegisterFP),
ENTRY("sp", FrameRegisterSP),
ENTRY("flags", FrameRegisterFlags),
ENTRY("no-debug", FrameNoDebug),
ENTRY_CHILDREN("reg", FrameRegisterByName, g_string_entry),
ENTRY("is-artificial", FrameIsArtificial),
}
#define ENTRY(n, t)
#define ENTRY_CHILDREN(n, t, c)
static FormatEntity::Entry::Definition g_string_entry[]

Definition at line 112 of file FormatEntity.cpp.

◆ g_function_child_entries

FormatEntity::Entry::Definition g_function_child_entries[]
static
Initial value:
= {
ENTRY("id", FunctionID),
ENTRY("name", FunctionName),
ENTRY("name-without-args", FunctionNameNoArgs),
ENTRY("name-with-args", FunctionNameWithArgs),
ENTRY("addr-offset", FunctionAddrOffset),
ENTRY("concrete-only-addr-offset-no-padding", FunctionAddrOffsetConcrete),
ENTRY("line-offset", FunctionLineOffset),
ENTRY("pc-offset", FunctionPCOffset),
ENTRY("initial-function", FunctionInitial),
ENTRY("changed", FunctionChanged),
ENTRY("is-optimized", FunctionIsOptimized)}
#define ENTRY(n, t)

Definition at line 123 of file FormatEntity.cpp.

◆ g_line_child_entries

FormatEntity::Entry::Definition g_line_child_entries[]
static
Initial value:
= {
ENTRY_CHILDREN("file", LineEntryFile, g_file_child_entries),
ENTRY("number", LineEntryLineNumber),
ENTRY("column", LineEntryColumn),
ENTRY("start-addr", LineEntryStartAddress),
ENTRY("end-addr", LineEntryEndAddress),
}
#define ENTRY(n, t)
#define ENTRY_CHILDREN(n, t, c)
static FormatEntity::Entry::Definition g_file_child_entries[]

Definition at line 136 of file FormatEntity.cpp.

◆ g_module_child_entries

FormatEntity::Entry::Definition g_module_child_entries[]
static
Initial value:
= {
ENTRY_CHILDREN("file", ModuleFile, g_file_child_entries),
}
#define ENTRY_CHILDREN(n, t, c)
static FormatEntity::Entry::Definition g_file_child_entries[]

Definition at line 144 of file FormatEntity.cpp.

◆ g_process_child_entries

FormatEntity::Entry::Definition g_process_child_entries[]
static
Initial value:
= {
ENTRY("id", ProcessID),
ENTRY_VALUE("name", ProcessFile, FileKind::Basename),
ENTRY_CHILDREN("file", ProcessFile, g_file_child_entries),
}
#define ENTRY(n, t)
#define ENTRY_CHILDREN(n, t, c)
#define ENTRY_VALUE(n, t, v)
static FormatEntity::Entry::Definition g_file_child_entries[]

Definition at line 148 of file FormatEntity.cpp.

◆ g_root

Initial value:
=
static FormatEntity::Entry::Definition g_top_level_entries[]
#define ENTRY_CHILDREN(n, t, c)

Definition at line 264 of file FormatEntity.cpp.

◆ g_script_child_entries

FormatEntity::Entry::Definition g_script_child_entries[]
static
Initial value:
= {
ENTRY("frame", ScriptFrame), ENTRY("process", ScriptProcess),
ENTRY("target", ScriptTarget), ENTRY("thread", ScriptThread),
ENTRY("var", ScriptVariable), ENTRY("svar", ScriptVariableSynthetic),
ENTRY("thread", ScriptThread),
}
#define ENTRY(n, t)

Definition at line 238 of file FormatEntity.cpp.

◆ g_string_entry

FormatEntity::Entry::Definition g_string_entry[]
static
Initial value:
= {
ENTRY("*", ParentString)}
#define ENTRY(n, t)

Definition at line 98 of file FormatEntity.cpp.

◆ g_svar_child_entries

FormatEntity::Entry::Definition g_svar_child_entries[]
static
Initial value:
= {
ENTRY("*", ParentString)}
#define ENTRY(n, t)

Definition at line 154 of file FormatEntity.cpp.

◆ g_target_child_entries

FormatEntity::Entry::Definition g_target_child_entries[]
static
Initial value:
= {
ENTRY("arch", TargetArch),
}
#define ENTRY(n, t)

Definition at line 172 of file FormatEntity.cpp.

◆ g_thread_child_entries

FormatEntity::Entry::Definition g_thread_child_entries[]
static
Initial value:
= {
ENTRY("id", ThreadID),
ENTRY("protocol_id", ThreadProtocolID),
ENTRY("index", ThreadIndexID),
ENTRY_CHILDREN("info", ThreadInfo, g_string_entry),
ENTRY("queue", ThreadQueue),
ENTRY("name", ThreadName),
ENTRY("stop-reason", ThreadStopReason),
ENTRY("return-value", ThreadReturnValue),
ENTRY("completed-expression", ThreadCompletedExpression),
}
#define ENTRY(n, t)
#define ENTRY_CHILDREN(n, t, c)
static FormatEntity::Entry::Definition g_string_entry[]

Definition at line 160 of file FormatEntity.cpp.

◆ g_top_level_entries

FormatEntity::Entry::Definition g_top_level_entries[]
static
Initial value:
= {
ENTRY_CHILDREN("addr", AddressLoadOrFile, g_addr_entries),
ENTRY("addr-file-or-load", AddressLoadOrFile),
ENTRY_CHILDREN("ansi", Invalid, g_ansi_entries),
ENTRY("current-pc-arrow", CurrentPCArrow),
ENTRY("language", Lang),
ENTRY_CHILDREN_KEEP_SEP("svar", VariableSynthetic, g_svar_child_entries),
}
static FormatEntity::Entry::Definition g_var_child_entries[]
static FormatEntity::Entry::Definition g_function_child_entries[]
static FormatEntity::Entry::Definition g_target_child_entries[]
static FormatEntity::Entry::Definition g_svar_child_entries[]
static FormatEntity::Entry::Definition g_addr_entries[]
#define ENTRY(n, t)
static FormatEntity::Entry::Definition g_thread_child_entries[]
A file class.
Definition: File.h:29
#define ENTRY_CHILDREN(n, t, c)
static FormatEntity::Entry::Definition g_script_child_entries[]
static FormatEntity::Entry::Definition g_line_child_entries[]
static FormatEntity::Entry::Definition g_process_child_entries[]
static FormatEntity::Entry::Definition g_frame_child_entries[]
static FormatEntity::Entry::Definition g_file_child_entries[]
static FormatEntity::Entry::Definition g_ansi_entries[]
#define ENTRY_CHILDREN_KEEP_SEP(n, t, c)
static FormatEntity::Entry::Definition g_module_child_entries[]

Definition at line 245 of file FormatEntity.cpp.

◆ g_var_child_entries

FormatEntity::Entry::Definition g_var_child_entries[]
static
Initial value:
= {
ENTRY("*", ParentString)}
#define ENTRY(n, t)

Definition at line 157 of file FormatEntity.cpp.