LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::PE::CodeView Class Reference

Interface for the (generic) Debug CodeView (IMAGE_DEBUG_TYPE_CODEVIEW) More...

#include <CodeView.hpp>

Inheritance diagram for LIEF::PE::CodeView:
Collaboration diagram for LIEF::PE::CodeView:

Public Types

enum class  SIGNATURES {
  UNKNOWN = 0 , PDB_70 = 0x53445352 , PDB_20 = 0x3031424e , CV_50 = 0x3131424e ,
  CV_41 = 0x3930424e
}
 Code view signatures. More...
 
- Public Types inherited from LIEF::PE::Debug
enum class  TYPES {
  UNKNOWN = 0 , COFF = 1 , CODEVIEW = 2 , FPO = 3 ,
  MISC = 4 , EXCEPTION = 5 , FIXUP = 6 , OMAP_TO_SRC = 7 ,
  OMAP_FROM_SRC = 8 , BORLAND = 9 , RESERVED10 = 10 , CLSID = 11 ,
  VC_FEATURE = 12 , POGO = 13 , ILTCG = 14 , MPX = 15 ,
  REPRO = 16 , EX_DLLCHARACTERISTICS = 20
}
 The entry types. More...
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Public Member Functions

 CodeView ()
 
 CodeView (SIGNATURES sig)
 
 CodeView (const details::pe_debug &debug, SIGNATURES sig)
 
 CodeView (const CodeView &other)=default
 
CodeViewoperator= (const CodeView &other)=default
 
 ~CodeView () override=default
 
SIGNATURES signature () const
 The signature that defines the underlying type of the payload.
 
std::unique_ptr< Debugclone () const override
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::PE::Debug
 Debug ()=default
 
 Debug (TYPES type)
 
 Debug (const details::pe_debug &debug_s)
 
 Debug (const Debug &other)=default
 
Debugoperator= (const Debug &other)=default
 
 ~Debug () override=default
 
uint32_t characteristics () const
 Reserved should be 0.
 
uint32_t timestamp () const
 The time and date when the debug data was created.
 
uint16_t major_version () const
 The major version number of the debug data format.
 
uint16_t minor_version () const
 The minor version number of the debug data format.
 
TYPES type () const
 The format DEBUG_TYPES of the debugging information.
 
uint32_t sizeof_data () const
 Size of the debug data.
 
uint32_t addressof_rawdata () const
 Address of the debug data relative to the image base.
 
uint32_t pointerto_rawdata () const
 File offset of the debug data.
 
void characteristics (uint32_t characteristics)
 
void timestamp (uint32_t timestamp)
 
void major_version (uint16_t major_version)
 
void minor_version (uint16_t minor_version)
 
void sizeof_data (uint32_t sizeof_data)
 
void addressof_rawdata (uint32_t addressof_rawdata)
 
void pointerto_rawdata (uint32_t pointerto_rawdata)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Static Public Member Functions

static bool classof (const Debug *debug)
 

Detailed Description

Interface for the (generic) Debug CodeView (IMAGE_DEBUG_TYPE_CODEVIEW)

Member Enumeration Documentation

◆ SIGNATURES

enum class LIEF::PE::CodeView::SIGNATURES
strong

Code view signatures.

See also
: http://llvm.org/doxygen/CVDebugRecord_8h_source.html
Enumerator
UNKNOWN 
PDB_70 
PDB_20 
CV_50 
CV_41 

Constructor & Destructor Documentation

◆ CodeView() [1/4]

LIEF::PE::CodeView::CodeView ( )
inline

◆ CodeView() [2/4]

LIEF::PE::CodeView::CodeView ( SIGNATURES sig)
inline

◆ CodeView() [3/4]

LIEF::PE::CodeView::CodeView ( const details::pe_debug & debug,
SIGNATURES sig )

◆ CodeView() [4/4]

LIEF::PE::CodeView::CodeView ( const CodeView & other)
default

◆ ~CodeView()

LIEF::PE::CodeView::~CodeView ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::PE::CodeView::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

Reimplemented in LIEF::PE::CodeViewPDB.

◆ classof()

static bool LIEF::PE::CodeView::classof ( const Debug * debug)
inlinestatic

◆ clone()

std::unique_ptr< Debug > LIEF::PE::CodeView::clone ( ) const
inlineoverridevirtual

Reimplemented from LIEF::PE::Debug.

Reimplemented in LIEF::PE::CodeViewPDB.

◆ operator=()

CodeView & LIEF::PE::CodeView::operator= ( const CodeView & other)
default

◆ signature()

SIGNATURES LIEF::PE::CodeView::signature ( ) const
inline

The signature that defines the underlying type of the payload.


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