mxmssh / idapython

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

GetFirstMember/GetLastMember broken #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make a python script using GetFirstMember(ea)

What is the expected output? What do you see instead?
The first offset returned

What version of the product are you using? On what operating system?
0.9.0

Please provide any additional information below.

 Dumping function disassembly
Got what we were looking for
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\IDA\python\init.py", line 55, in runscript
    execfile(script, globals())
  File "C:/getdisas.py", line 25, in <module>
    first = GetFirstMember(id)
  File "C:\Program Files\IDA\python\idc.py", line 4267, in GetFirstMember
    return idaapi.get_struc_first_offset(s, offset)
NameError: global name 'offset' is not defined

Original issue reported on code.google.com by m...@carrollmail.net on 20 Aug 2008 at 2:48

GoogleCodeExporter commented 9 years ago
sorry just noticed this on some blog

"Interestingly the IDAPython wrapper for IDC had a bug in the 
Get(First|Last)Member()
functions (someone apparently found it last month so it’s patched in the 
SVN)."

Original comment by m...@carrollmail.net on 20 Aug 2008 at 2:56

GoogleCodeExporter commented 9 years ago

Original comment by gergely.erdelyi on 27 Sep 2008 at 1:56