File: //lib/python3.9/site-packages/elftools/dwarf/__pycache__/compileunit.cpython-39.pyc
a
�#�_B! � @ s8 d dl mZ ddlmZ ddlmZ G dd� de�ZdS ) � )�bisect_right� )�DIE� )�dwarf_assertc @ sl e Zd ZdZdd� Zdd� Zdd� Zdd � Zed
d� �Z dd
� Z
dd� Zdd� Zdd� Z
dd� Zdd� ZdS )�CompileUnita� A DWARF compilation unit (CU).
A normal compilation unit typically represents the text and data
contributed to an executable by a single relocatable object file.
It may be derived from several source files,
including pre-processed "include files"
Serves as a container and context to DIEs that describe objects and code
belonging to a compilation unit.
CU header entries can be accessed as dict keys from this object, i.e.
cu = CompileUnit(...)
cu['version'] # version field of the CU header
To get the top-level DIE describing the compilation unit, call the
get_top_DIE method.
c C s4 || _ || _|| _|| _|| _d| _g | _g | _dS )a� header:
CU header for this compile unit
dwarfinfo:
The DWARFInfo context object which created this one
structs:
A DWARFStructs instance suitable for this compile unit
cu_offset:
Offset in the stream to the beginning of this CU (its header)
cu_die_offset:
Offset in the stream of the top DIE of this CU
N)� dwarfinfo�header�structs� cu_offset�
cu_die_offset�
_abbrev_table�_dielist�_diemap)�selfr r r
r r � r �>/usr/lib/python3.9/site-packages/elftools/dwarf/compileunit.py�__init__ s zCompileUnit.__init__c C s | j jS )z5 Get the DWARF format (32 or 64) for this CU
)r
�dwarf_format�r r r r r E s zCompileUnit.dwarf_formatc C s"