gradetwo / idapython

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

Issue with GetFixupTgt...() #79

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Highlight an offset in a DB
2. Enter the following idapython:
GetFixupTgtOff(ScreenEA())

All of the GetFixupTgt*() functions appear to have the same problem.

What is the expected output? 
Expect to have the offset value returned (or -1 if the EA is not an offset).

What do you see instead?
The following python backtrace:
Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "[redacted]\ida\python\idc.py", line 4488, in GetFixupTgtOff
      fd = idaapi.get_fixup(ea)
   File "[redacted]\ida\python\idaapi.py", line 18788, in get_fixup
      reutnr _idaapi.get_fixup(*args)
TypeError: get_fixup expected 2 arguments, got 1

What version of the product are you using? On what operating system?
This is using v1.5.2.3 on Windows w/ Python 2.6, and IDA 6.1

Please provide any additional information below.
Reading the source from idaapi.py, it appears that _idaapi.get_fixup() is 
expecting the arguments of ea_t and a fixup_data_t but all the wrapper 
functions are omitting the second argument.

Original issue reported on code.google.com by morphi...@gmail.com on 20 Dec 2011 at 11:26