gradetwo / idapython

Automatically exported from code.google.com/p/idapython
Other
1 stars 0 forks source link

get_item_head should be included in idaapi #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call idc.ItemHead()

What is the expected output? What do you see instead?
idc.py makes a call to idaapi.get_item_head()

What version of the product are you using? On what operating system?
IDA Pro 6.1, Linux

Please provide any additional information below.
idaapi.py does not implement get_item_head() even though the ItemHead() 
compatibility function in idc.py uses it. 

Original issue reported on code.google.com by jeffrey....@gmail.com on 28 Jul 2011 at 8:04

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the report. It seems an old bug since IDAPython 1 at least.

For now, implement idc.ItemHead() like this:

def ItemHead(ea):
  if idaapi.isTail(idaapi.get_flags_novalue(ea)):
    ea = idaapi.prev_not_tail(ea)
  return ea

Original comment by elias.ba...@gmail.com on 8 Aug 2011 at 3:38