LLDB mainline
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
lldb_private::breakpad::Record Class Reference

#include <BreakpadRecords.h>

Inheritance diagram for lldb_private::breakpad::Record:
Inheritance graph
[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()

lldb_private::breakpad::Record::Record ( Kind  K)
inlineprotected

Definition at line 43 of file BreakpadRecords.h.

◆ ~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 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().


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