Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  Automatic Usage of: Set Function Type

Topic created on: June 29, 2007 04:36 CDT by luckiejacky .

How can I enable display of all function type of each function?
Say when I have
int sub_1234(int, int, int); <<<<<< how to generate this automatically when opening/starting IDA?
sub_1234 proc near

Thanks a million times
Jack

  aeppert     June 29, 2007 09:22.10 CDT
IDA Pro does not do this natively.  With that being said, with the SDK, IdaPython, or IDC you are free to solve the problem.

  luckiejacky   June 29, 2007 09:38.14 CDT
I found guess_type... but did not work for me...
It always returned null string
Thanks
Jack

  luckiejacky   June 29, 2007 09:40.08 CDT
What do I do to use IDA SDK to turn on function type by default?
Thanks
Jack

  luckiejacky   June 30, 2007 02:29.51 CDT
x = SetType(ea,var);

"Missing brace" is reported for this statement
What happens?
Thanks
Jack

  luckiejacky   June 30, 2007 02:41.17 CDT
var=GetType(ea);  
x = SetType(ea,var);

This doesn't work. While this does
x = SetType (ea, "void go(void);");
This in effect sets everything to void(void);

Seems this also won't work
x = SetType (ea, "void go(myType);");

Very confused now

  luckiejacky   June 30, 2007 03:05.44 CDT
a Modified version
Still has missing brace problem
Try it on your IDA...
Thanks


static main() {
  auto ea,x;
  auto var;

  for ( ea=NextFunction(0); ea != BADADDR; ea=NextFunction(ea) ) {
   var=GetType(ea);  
        if (var == "") {
           var = GuessType(ea);
           SetType(ea,var);   <<<< still missing brace
                                  
           Message ("%s\n", var);
          
}
        else
{
   Message ("%s\n", var);
        }
        
     Message("\n");
  }
  ea = ChooseFunction("Please choose a function");
  Message("The user chose function at %08lX\n",ea);
}

Note: Registration is required to post to the forums.

There are 31,322 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
hi!
Jul/01
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit