Skip to content

Commit

Permalink
Fix a forgotten func_addr
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Jul 25, 2024
1 parent 26a0892 commit 0b1d0d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libbs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.17.0"
__version__ = "1.17.1"


import logging
Expand Down
4 changes: 2 additions & 2 deletions libbs/decompilers/ida/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,9 +1028,9 @@ def get_screen_ea():
def get_function_cursor_at():
curr_addr = get_screen_ea()
if curr_addr is None:
return None
return None, None

return ida_func_addr(curr_addr)
return curr_addr, ida_func_addr(curr_addr)


#
Expand Down
8 changes: 4 additions & 4 deletions libbs/decompilers/ida/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ def stop_artifact_watchers(self):

def gui_active_context(self) -> Context:
if self._gui_active_context is None:
low_addr = compat.get_screen_ea()
self._gui_active_context = Context(
addr=self.art_lifter.lift_addr(low_addr) if low_addr is not None else None
)
low_addr, low_func_addr = compat.get_function_cursor_at()
self._gui_active_context = self.art_lifter.lift(Context(
addr=low_addr, func_addr=low_func_addr
))

return self._gui_active_context

Expand Down

0 comments on commit 0b1d0d7

Please sign in to comment.