In IDAPython, what is the ea_t
data type? It is used in the set_debug_name()
function as follows:
bool set_debug_name(ea, name)
If I have a 64-bits address, can it be represented by the ea_t
data type ?
For example, in this Python script:
line = "ffffffff81000000 T startup_64"
addr = int(line[:16],16)
name = line[19:]
idaapi.set_debug_name(addr,name)
I receive this error while executing the IDA Python script:
TypeError: Expected an ea_t type
from IDA Pro:
Python> from idaapi import *
Python> line="ffffffff81000000 T startup_64"
Python> addr=int(line[:16],16)
Python> name=line[19:]
Python> print "addr: %x" %(addr)
addr: ffffffff81000000
Python> print name
startup_64
Python> set_debug_name(addr,name)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "X\IDA Pro\IDA61\python\idaapi.py", line 23612, in set_debug_name
return _idaapi.set_debug_name(*args)
TypeError: Expected an ea_t type
Are the idaapi.py
files different for 32-bits and 64-bits IDA Pro versions?
I am using a 32-bits version of IDAPro.