mirror of
https://github.com/cemu-project/idapython.git
synced 2026-01-31 01:15:17 +01:00
- added GetInstructionList() and GetRegisterList() to idautils.py
- ignored processor_t and ph global variable
This commit is contained in:
@@ -451,6 +451,13 @@ class Strings(object):
|
||||
return Strings.StringItem(self._si)
|
||||
return None
|
||||
|
||||
def GetRegisterList():
|
||||
"""Returns the register list"""
|
||||
return idaapi.ph_get_regnames()
|
||||
|
||||
def GetInstructionList():
|
||||
"""Returns the instruction list of the current processor module"""
|
||||
return [i[0] for i in idaapi.ph_get_instruc() if i[0]]
|
||||
|
||||
def _Assemble(ea, line):
|
||||
"""
|
||||
|
||||
@@ -805,7 +805,7 @@ def MakePackReal(ea):
|
||||
|
||||
@return: 1-ok, 0-failure
|
||||
"""
|
||||
return idaapi.doPackReal(ea, idaapi.cvar.ph.tbyte_size)
|
||||
return idaapi.doPackReal(ea, idaapi.ph_get_tbyte_size())
|
||||
|
||||
|
||||
def MakeTbyte(ea):
|
||||
@@ -816,7 +816,7 @@ def MakeTbyte(ea):
|
||||
|
||||
@return: 1-ok, 0-failure
|
||||
"""
|
||||
return idaapi.doTbyt(ea, idaapi.cvar.ph.tbyte_size)
|
||||
return idaapi.doTbyt(ea, idaapi.ph_get_tbyte_size())
|
||||
|
||||
|
||||
def MakeStructEx(ea, size, strname):
|
||||
@@ -2352,13 +2352,13 @@ def ChangeConfig(directive):
|
||||
@note: If the directives are erroneous, a fatal error will be generated.
|
||||
The changes will be effective only for the current session.
|
||||
"""
|
||||
return Eval('ChangeConfig("%s")'%directive)
|
||||
return Eval('ChangeConfig("%s")' % directive)
|
||||
|
||||
|
||||
# The following functions allow you to set/get common parameters.
|
||||
# Please note that not all parameters can be set directly.
|
||||
|
||||
def GetLongPrm (offset):
|
||||
def GetLongPrm(offset):
|
||||
"""
|
||||
"""
|
||||
val = _IDC_GetAttr(idaapi.cvar.inf, _INFMAP, offset)
|
||||
|
||||
Reference in New Issue
Block a user