Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sevaa committed Sep 20, 2024
1 parent efc2ab4 commit 142401b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dwex/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .funcmap import FuncMapDlg, GatherFuncsThread

# Sync with version in setup.py
version = (4, 20)
version = (4, 21)

# TODO:
# On MacOS, start without a main window, instead show the Open dialog
Expand Down
6 changes: 5 additions & 1 deletion dwex/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,16 @@ def add_macho_sections_from_executable(di, macho):
if section.header.offset > 0
}

di._unwind_sec = sections.get('__unwind_info').bytes
di._text_sec = sections.get('__text').bytes

unwind = sections.get('__unwind_info', None)
if unwind:
di._unwind_sec = unwind.bytes

eh = sections.get('__eh_frame', None)
if eh:
di.eh_frame_sec = DebugSectionDescriptor(io.BytesIO(eh.bytes), eh.name, None, len(eh.bytes), 0)

di._text_section_start = sections.get('__text').header.addr
di._has_exec = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def run(self):

setup(
name='dwex',
version='4.20', # Sync with version in __main__
version='4.21', # Sync with version in __main__
packages=['dwex'],
url="https:/sevaa/dwex/",
entry_points={"gui_scripts": ["dwex = dwex.__main__:main"]},
Expand Down

0 comments on commit 142401b

Please sign in to comment.