mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 09:43:06 +00:00
878e4017c8
CompoundType.members() currently returns a list of member names; sometimes, we actually want the type and offset. So, rename members() to member_names(), and make members() return the type and offset, using a newly added version of functools.partial() that caches the return value.
44 lines
1005 B
Python
Executable File
44 lines
1005 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from drgn import __version__
|
|
from setuptools import setup, find_packages
|
|
from setuptools.extension import Extension
|
|
|
|
|
|
extensions = [
|
|
Extension(
|
|
name='drgn.internal.corereader',
|
|
sources=[
|
|
'drgn/internal/corereader.c',
|
|
],
|
|
),
|
|
Extension(
|
|
name='drgn.internal.dwarfindex',
|
|
sources=[
|
|
'drgn/internal/dwarfindex.c',
|
|
],
|
|
extra_compile_args=['-fopenmp'],
|
|
extra_link_args=['-fopenmp'],
|
|
),
|
|
Extension(
|
|
name='drgn.internal.thunk',
|
|
sources=[
|
|
'drgn/internal/thunk.c',
|
|
],
|
|
),
|
|
]
|
|
|
|
setup(
|
|
name='drgn',
|
|
version=__version__,
|
|
packages=find_packages(exclude=['examples', 'scripts', 'tests']),
|
|
ext_modules=extensions,
|
|
entry_points={
|
|
'console_scripts': ['drgn=drgn.internal.cli:main'],
|
|
},
|
|
author='Omar Sandoval',
|
|
author_email='osandov@osandov.com',
|
|
license='GPL-3.0+',
|
|
description='Scriptable debugger library',
|
|
)
|