Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Automating definition of C++ classes/vtables in IDA? (https://forum.exetools.com/showthread.php?t=19639)

jonwil 09-02-2020 17:45

Automating definition of C++ classes/vtables in IDA?
 
I have a 3DS Max 8 plugin binary. I have a bunch of header files from the 3DS MAX 8 SDK that define classes (including their vtables) that are used by this plugin binary.

I have IDA Pro 7.0.170914.
Is there some way I can automate importing these header files into IDA in a way that defines the vtables and stuff? Using "Parse C Header File" doesn't work for these C++ headers. Using tilib.exe for that version of IDA pro fails with "not implemented yet" (the -P switch for C++ does say "not ready yet").

Is there something I can do here to import these into IDA without needing to do it all manually? Is there a newer version of tilib.exe that will work better but still outputs til files that IDA Pro 7.0 can read? Is there some other way to do it? Or am I stuck having to manually massage these things into IDA?

jonwil 09-02-2020 18:59

I was actually able to get it working by taking a pdb file that contained the structures I was interested in and using tilib -p to import the types from that pdb. Its not so useful for vtables of derived classes but IDA in general (or at least the version I have) doesn't handle that properly anyway.


All times are GMT +8. The time now is 12:51.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX