Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Delphi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import idautils
import collections

from idaapi import *

addr = 0
EP = 0
info = idaapi.get_inf_structure()
Expand Down Expand Up @@ -47,11 +49,11 @@ def dbg_bpt(self, tid, ea):
try:
idc.create_insn(func_addr) # Mark as Code if not ..
ida_funcs.add_func(func_addr) # Mark as Function if not ..
idc.set_name(func_addr, "_DE_"+func_name, idc.SN_NOWARN)
except:
pass
idc.set_name(func_addr, "_DE_"+func_name.decode('utf-8'), idc.SN_CHECK)
except Exception as e:
print(e)

print("func addr : 0x%x name : %s" % ( func_addr , func_name ))
print("func addr : 0x%x name : %s" % ( func_addr , func_name.decode('utf-8') ))
idaapi.continue_process()
if (ea == EP):
idaapi.continue_process()
Expand Down