Skip to content

Commit

Permalink
Merge pull request #14 from vsoch/integral-to-integer
Browse files Browse the repository at this point in the history
changing integral to integer
  • Loading branch information
vsoch committed Jun 27, 2022
2 parents 0e7d07a + 0b6a702 commit 2b6c7cb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The primary interface to CLE is the Loader class.
"""

__version__ = "9.2.7.dev0"
__version__ = "9.2.8.dev0"

if bytes is str:
raise Exception("This module is designed for python 3 only. Please install an older version to use python 2.")
Expand Down
4 changes: 2 additions & 2 deletions cle/backends/elf/compilation_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class CompilationUnit:
CompilationUnit for DWARF
See http://dwarfstd.org/doc/DWARF5.pdf page 60
"""
functions: Dict[int, Subprogram] = {}
global_variables: List[Variable] = []

def __init__(self, name, comp_dir, low_pc, high_pc, language):
self.name = name
Expand All @@ -20,3 +18,5 @@ def __init__(self, name, comp_dir, low_pc, high_pc, language):
self.low_pc = low_pc
self.high_pc = high_pc
self.language = language
self.functions: Dict[int, Subprogram] = {}
self.global_variables: List[Variable] = []
7 changes: 4 additions & 3 deletions cle/backends/elf/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ def __init__(
debug_filename = '/usr/lib/debug/.build-id/%s/%s.debug' % (self.build_id[:2], self.build_id[2:])
if os.path.isfile(debug_filename):
self.__process_debug_file(debug_filename)
debug_filename = os.path.join('/usr/lib/debug', os.path.realpath(self.binary))
if os.path.isfile(debug_filename):
self.__process_debug_file(debug_filename)
if self.binary:
debug_filename = os.path.join('/usr/lib/debug', os.path.realpath(self.binary))
if os.path.isfile(debug_filename):
self.__process_debug_file(debug_filename)

# call the methods defined by MetaELF
self._ppc64_abiv1_entry_fix()
Expand Down
4 changes: 2 additions & 2 deletions cle/backends/elf/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class ClassType:
"short": "Integer",
"long int": "Integer",
"unsigned int": "Integer",
"unsigned char": "Integral",
"signed char": "Integral",
"unsigned char": "Integer",
"signed char": "Integer",
"short unsigned int": "Integer",
"long long int": "Integer",
"long long unsigned int": "Integer",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ long_description_content_type = text/markdown
[options]
install_requires =
pyelftools >= 0.27
pyvex == 9.2.7.dev0
pyvex == 9.2.8.dev0
pefile
sortedcontainers >= 2.0
python_requires = >= 3.8
Expand Down

0 comments on commit 2b6c7cb

Please sign in to comment.