LLDB  mainline
Enumerations | Functions
CrashReason.h File Reference
#include "lldb/lldb-types.h"
#include <csignal>
#include <string>
Include dependency graph for CrashReason.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  CrashReason {
  CrashReason::eInvalidCrashReason, CrashReason::eInvalidAddress, CrashReason::ePrivilegedAddress, CrashReason::eBoundViolation,
  CrashReason::eAsyncTagCheckFault, CrashReason::eSyncTagCheckFault, CrashReason::eIllegalOpcode, CrashReason::eIllegalOperand,
  CrashReason::eIllegalAddressingMode, CrashReason::eIllegalTrap, CrashReason::ePrivilegedOpcode, CrashReason::ePrivilegedRegister,
  CrashReason::eCoprocessorError, CrashReason::eInternalStackError, CrashReason::eIllegalAlignment, CrashReason::eIllegalAddress,
  CrashReason::eHardwareError, CrashReason::eIntegerDivideByZero, CrashReason::eIntegerOverflow, CrashReason::eFloatDivideByZero,
  CrashReason::eFloatOverflow, CrashReason::eFloatUnderflow, CrashReason::eFloatInexactResult, CrashReason::eFloatInvalidOperation,
  CrashReason::eFloatSubscriptRange
}
 

Functions

std::string GetCrashReasonString (CrashReason reason, lldb::addr_t fault_addr)
 
std::string GetCrashReasonString (CrashReason reason, const siginfo_t &info)
 
const char * CrashReasonAsString (CrashReason reason)
 
CrashReason GetCrashReason (const siginfo_t &info)
 

Enumeration Type Documentation

◆ CrashReason

enum CrashReason
strong
Enumerator
eInvalidCrashReason 
eInvalidAddress 
ePrivilegedAddress 
eBoundViolation 
eAsyncTagCheckFault 
eSyncTagCheckFault 
eIllegalOpcode 
eIllegalOperand 
eIllegalAddressingMode 
eIllegalTrap 
ePrivilegedOpcode 
ePrivilegedRegister 
eCoprocessorError 
eInternalStackError 
eIllegalAlignment 
eIllegalAddress 
eHardwareError 
eIntegerDivideByZero 
eIntegerOverflow 
eFloatDivideByZero 
eFloatOverflow 
eFloatUnderflow 
eFloatInexactResult 
eFloatInvalidOperation 
eFloatSubscriptRange 

Definition at line 18 of file CrashReason.h.

Function Documentation

◆ CrashReasonAsString()

const char* CrashReasonAsString ( CrashReason  reason)

◆ GetCrashReason()

CrashReason GetCrashReason ( const siginfo_t &  info)

◆ GetCrashReasonString() [1/2]

std::string GetCrashReasonString ( CrashReason  reason,
const siginfo_t &  info 
)

◆ GetCrashReasonString() [2/2]

std::string GetCrashReasonString ( CrashReason  reason,
lldb::addr_t  fault_addr 
)