Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  Stack tracing with IDA Pro plugin

Topic created on: September 4, 2009 20:44 CDT by sweetlie .

Hi,

I am writing IDA Pro plugin to automate debugging.
How can I get stack tracing information - especially, all callers -?
It seems that no related api is provided.
Regards.

  detlef   September 5, 2009 10:16.40 CDT
You can use the IDA-SDK itself. A documentation is implicitly given by the header files.

IDA Plug-In writing in c/c++ is a rather good introduction. In combination with the IDA-SDK it should be sufficient to enable you to write your own plugins.

If I remember correctly even a debugger plugin is given as an example.

  sweetlie   September 5, 2009 21:33.06 CDT
Thanks, detlef.
I mean I cannot find any useful api to get call stack in IDA-SDK.
I have to analyze the stack information manually in IDA plugin?

  detlef   September 6, 2009 09:27.30 CDT
instead of starting from scratch you can use the cross referencing functionality of IDA. Just lookup 6.1 of the above mentioned manual (page 101). This does of course not take advantage of dynamically calculated jumps and calls and you will miss them. But it might be sufficient for you.

  detlef   September 6, 2009 10:17.42 CDT
ups, i've just mixed up two different things. Take a look at the frame.hpp file. There you will find information about how to analyse the current stack frame. And yes, I think you have to analyse the stack manually.

  sweetlie   September 6, 2009 20:44.42 CDT
thanks, detlef.
It's frame.hpp that I wanna find.

  Hanumaan     January 26, 2010 08:56.21 CST
Hey, i am trying write a plugin which would track for any memory wtite operation. can it be done and if yes how.

thanx in advance.

Note: Registration is required to post to the forums.

There are 16,579 total registered users.


Recently Created Topics
how to crate a PATC...
Mar/10
wsnpoem audio.dll
Mar/09
suggestions - RE tra...
Mar/09
Requesting Suggestio...
Mar/06
Force enable debug p...
Mar/05
upgrading new image ...
Mar/03
upgrading new image ...
Mar/03
upgrading new image ...
Mar/03
Can some one give me...
Mar/02
Error in generating ...
Feb/28


Recent Forum Posts
wsnpoem audio.dll
zhane
suggestions - RE tra...
Silkut
how to crate a PATC...
Silkut
suggestions - RE tra...
RolfRolles
wsnpoem audio.dll
debbie
Requesting Suggestio...
secursig
Requesting Suggestio...
phn1x
how to get executabl...
RabidCi...
how to get executabl...
RabidCi...
Force enable debug p...
Silkut


Recent Blog Entries
RolfRolles
Mar/08
Compiler Optimizations for ...

ReWolf
Mar/04
When memory management goes...

thesprawler
Feb/20
log1949.txt -- Wondering ho...

thesprawler
Feb/20
log1949.log -- created on C...

thesprawler
Feb/17
Trying to reverse the firmw...

More ...


Recent Blog Comments
Boken on:
Mar/12
Compiler Optimizations for ...

wildinto on:
Mar/10
Compiler Optimizations for ...

Orr on:
Mar/10
Compiler Optimizations for ...

bughoho on:
Mar/09
Compiler Optimizations for ...

cliffwolf on:
Mar/08
Compiler Optimizations for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit