mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-29 03:01:52 +01:00
idautils.py: Small whitespace and indentation fixes
This commit is contained in:
parent
9c80378afe
commit
8e66e14588
@ -171,11 +171,13 @@ def XrefsTo(ea, flags=0):
|
|||||||
while xref.next_to():
|
while xref.next_to():
|
||||||
yield _copy_xref(xref)
|
yield _copy_xref(xref)
|
||||||
|
|
||||||
|
|
||||||
def Threads():
|
def Threads():
|
||||||
"""Returns all thread IDs"""
|
"""Returns all thread IDs"""
|
||||||
for i in xrange(0, idc.GetThreadQty()):
|
for i in xrange(0, idc.GetThreadQty()):
|
||||||
yield idc.GetThreadId(i)
|
yield idc.GetThreadId(i)
|
||||||
|
|
||||||
|
|
||||||
def Heads(start=idaapi.cvar.inf.minEA, end=idaapi.cvar.inf.maxEA):
|
def Heads(start=idaapi.cvar.inf.minEA, end=idaapi.cvar.inf.maxEA):
|
||||||
"""
|
"""
|
||||||
Get a list of heads (instructions or data)
|
Get a list of heads (instructions or data)
|
||||||
@ -452,7 +454,7 @@ def _Assemble(ea, line):
|
|||||||
ip = ea - (idaapi.ask_selector(seg.sel) << 4)
|
ip = ea - (idaapi.ask_selector(seg.sel) << 4)
|
||||||
buf = idaapi.AssembleLine(ea, seg.sel, ip, seg.bitness, line)
|
buf = idaapi.AssembleLine(ea, seg.sel, ip, seg.bitness, line)
|
||||||
if not buf:
|
if not buf:
|
||||||
return (False, "Assembler failed: " + line)
|
return (False, "Assembler failed: " + line)
|
||||||
ea += len(buf)
|
ea += len(buf)
|
||||||
ret.append(buf)
|
ret.append(buf)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user