Skip to content

Commit

Permalink
Update breakpoints.py - Fix issue with unresolved breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
dshikashio authored Jan 10, 2025
1 parent 6f8a19b commit 80f5910
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pybag/dbgeng/breakpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ def find_expr(self, expr):
except exception.E_NOINTERFACE_Error:
self._remove_stale(bpid)
continue
try:
bpexpr = bp.GetOffsetExpression()
except:
continue

bpexpr = bp.GetOffsetExpression()
print(bpexpr)
#expr = self.get_name_by_offset(bp.GetOffset())
if bpexpr == expr:
return bpid
return -1
Expand All @@ -141,12 +142,15 @@ def find_offset(self, offset):
self._remove_stale(bpid)
continue

bpoff = bp.GetOffset()
try:
bpoff = bp.GetOffset()
except:
continue

if bpoff == offset:
return bpid
return -1


def find(self, expr):
bpid = self.find_expr(expr)
if bpid == -1:
Expand Down

0 comments on commit 80f5910

Please sign in to comment.