LLDB mainline
lldb_private::breakpad::Record Class Reference

#include <BreakpadRecords.h>

Inheritance diagram for lldb_private::breakpad::Record:
[legend]

Public Types

enum  Kind {
  Module , Info , File , Func ,
  Inline , InlineOrigin , Line , Public ,
  StackCFI , StackWin
}

Public Member Functions

Kind getKind ()

Static Public Member Functions

static std::optional< Kindclassify (llvm::StringRef Line)
 Attempt to guess the kind of the record present in the argument without doing a full parse.

Protected Member Functions

 Record (Kind K)
 ~Record ()=default

Private Attributes

Kind TheKind

Detailed Description

Definition at line 22 of file BreakpadRecords.h.

Member Enumeration Documentation

◆ Kind

Enumerator
Module 
Info 
File 
Func 
Inline 
InlineOrigin 
Line 
Public 
StackCFI 
StackWin 

Definition at line 24 of file BreakpadRecords.h.

Constructor & Destructor Documentation

◆ Record()

◆ ~Record()

lldb_private::breakpad::Record::~Record ( )
protecteddefault

Member Function Documentation

◆ classify()

std::optional< Record::Kind > Record::classify ( llvm::StringRef Line)
static

Attempt to guess the kind of the record present in the argument without doing a full parse.

The returned kind will always be correct for valid records, but the full parse can still fail in case of corrupted input.

Definition at line 132 of file BreakpadRecords.cpp.

References consume(), File, Func, Info, Inline, InlineOrigin, Line, Module, Public, StackCFI, and StackWin.

Referenced by lldb_private::breakpad::ObjectFileBreakpad::CreateSections(), lldb_private::breakpad::SymbolFileBreakpad::GetOrCreateFunction(), lldb_private::breakpad::SymbolFileBreakpad::ParseBlocksRecursive(), lldb_private::breakpad::SymbolFileBreakpad::ParseCompileUnitAtIndex(), and lldb_private::breakpad::SymbolFileBreakpad::ParseLineTableAndSupportFiles().

◆ getKind()

Kind lldb_private::breakpad::Record::getKind ( )
inline

Definition at line 48 of file BreakpadRecords.h.

References TheKind.

Member Data Documentation

◆ TheKind

Kind lldb_private::breakpad::Record::TheKind
private

Definition at line 51 of file BreakpadRecords.h.

Referenced by getKind(), and Record().


The documentation for this class was generated from the following files: