Fix type issue in ida.py (#1474)

pull/1476/head
Gulshan Singh 3 years ago committed by GitHub
parent c53ad59aae
commit fef5077eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -294,23 +294,19 @@ def UpdateBreakpoints() -> None:
current = set(eval(b.location.lstrip("*")) for b in _breakpoints)
want = set(GetBreakpoints())
# print(want)
for addr in current - want:
for bp in _breakpoints:
if int(bp.location.lstrip("*"), 0) == addr:
# print("delete", addr)
bp.delete()
break
_breakpoints.remove(bp)
for bp in want - current:
if not pwndbg.gdblib.memory.peek(bp):
for addr in want - current:
if not pwndbg.gdblib.memory.peek(addr):
continue
bp = gdb.Breakpoint("*" + hex(int(bp)))
bp = gdb.Breakpoint("*" + hex(int(addr)))
_breakpoints.append(bp)
# print(_breakpoints)
@withIDA

@ -4,10 +4,15 @@ extend-exclude = "gdb-pt-dump"
[tool.mypy]
strict_optional = false
check_untyped_defs = true
allow_untyped_globals = true
allow_redefinition = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
# warn_return_any = true
# warn_unreachable = true
show_error_context = true
check_untyped_defs = true
pretty = true
show_error_codes = true
incremental = false

Loading…
Cancel
Save