Skip to content

Commit

Permalink
fix dumpinfo.py for IDA 9.0
Browse files Browse the repository at this point in the history
now the PDB generation works for IDA 9.0 too.
  • Loading branch information
Abbas-MG authored Oct 10, 2024
1 parent 40531aa commit 95f4fc0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src_plugins/ida/fakepdb/dumpinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,20 +669,20 @@ def __get_type_data(self, ea):
#

def __process_general(self):
info_struct = ida_idaapi.get_inf_structure()


#architecture
arch = info_struct.procname
arch = ida_ida.inf_get_procname()
if arch == 'metapc':
arch = 'x86'
elif arch == 'ARM':
arch = 'arm'

#bitness
bitness = 16
if info_struct.is_64bit():
if ida_ida.inf_is_64bit():
bitness = 64
elif info_struct.is_32bit():
elif ida_ida.inf_is_32bit_exactly():
bitness = 32

result = {
Expand Down Expand Up @@ -767,8 +767,8 @@ def __process_function_labels(self, func):
def __process_functions(self):
functions = list()

start = ida_ida.cvar.inf.min_ea
end = ida_ida.cvar.inf.max_ea
start = ida_ida.inf_get_min_ea()
end = ida_ida.inf_get_max_ea()

# find first function head chunk in the range
chunk = ida_funcs.get_fchunk(start)
Expand Down Expand Up @@ -1002,4 +1002,4 @@ def __process_types(self):
if ti_info.get_numbered_type(ti_lib_obj, ti_ordinal):
localtypes.append(self.__process_types_tinfo(ti_info))

return localtypes
return localtypes

0 comments on commit 95f4fc0

Please sign in to comment.