LLVM  5.0.0
Public Member Functions | List of all members
llvm::DWARFVerifier Class Reference

A class that verifies DWARF debug information given a DWARF Context. More...

#include "llvm/DebugInfo/DWARF/DWARFVerifier.h"

Public Member Functions

 DWARFVerifier (raw_ostream &S, DWARFContext &D)
 
bool handleDebugInfo ()
 Verify the information in the .debug_info section. More...
 
bool handleDebugLine ()
 Verify the information in the .debug_line section. More...
 
bool handleAppleNames ()
 Verify the information in the .apple_names accelerator table. More...
 

Detailed Description

A class that verifies DWARF debug information given a DWARF Context.

Definition at line 27 of file DWARFVerifier.h.

Constructor & Destructor Documentation

llvm::DWARFVerifier::DWARFVerifier ( raw_ostream &  S,
DWARFContext &  D 
)
inline

Definition at line 115 of file DWARFVerifier.h.

Member Function Documentation

bool DWARFVerifier::handleAppleNames ( )

Verify the information in the .apple_names accelerator table.

Any errors are reported to the stream that was this object was constructed with.

Returns
true if the .apple_names verifies successfully, false otherwise.

Definition at line 409 of file DWARFVerifier.cpp.

References llvm::dwarf::DW_INVALID_OFFSET, llvm::format(), fuzzer::Hash(), and Name.

Referenced by llvm::DWARFContext::verify().

bool DWARFVerifier::handleDebugInfo ( )

Verify the information in the .debug_info section.

Any errors are reported to the stream that was this object was constructed with.

Returns
true if the .debug_info verifies successfully, false otherwise.

Definition at line 105 of file DWARFVerifier.cpp.

References llvm::DataExtractor::isValidOffset(), and llvm_unreachable().

Referenced by llvm::DWARFContext::verify().

bool DWARFVerifier::handleDebugLine ( )

Verify the information in the .debug_line section.

Any errors are reported to the stream that was this object was constructed with.

Returns
true if the .debug_line verifies successfully, false otherwise.

Definition at line 401 of file DWARFVerifier.cpp.

Referenced by llvm::DWARFContext::verify().


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