 
View Full Version : IDA Pro question
joblack
May 21st, 2010, 22:27
I have an Adobe plugin which connects itself in the Adobe Reader.
How can I sort out functions which aren't referenced by other function (i.e. with a call).
disavowed
May 22nd, 2010, 14:51
Quote:
| [Originally Posted by joblack;86614]How can I sort out functions which aren't referenced by other function (i.e. with a call). | 
Define "sort out". Do you mean programatically get a list of functions which aren't referenced by other functions? If so, run the following IDC on the disassembly:
 
Code:
auto ea;
for (ea = NextFunction(0); BADADDR != ea; ea = NextFunction(ea))
{
    if ((BADADDR == RfirstB0(ea)) && (BADADDR == DfirstB(ea)))
    {
        Message("%08X\n", ea);
    }
}
joblack
May 22nd, 2010, 14:58
Quote:
| [Originally Posted by disavowed;86622]Define "sort out". Do you mean programatically get a list of functions which aren't referenced by other functions? | 
I have some functions where no other function references on it. These are most likely callback functions.
I'm looking for a 'search option' to sort out how many references exists. Haven't found anything in the help files or the IDA Pro Book.
disavowed
May 22nd, 2010, 15:02
Ah, in that case, yeah, you can use the IDC above.
joblack
May 22nd, 2010, 15:05
Great - thanks a lot. 

Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.