Log in

View Full Version : How trace multithreaded programs?


Adrian
February 22nd, 2005, 04:25
Good day to all!

I'm having problems tracing multithreaded apps. When the application created a new thread, olly just stops.

How am I going to trace the execution of different threads?

Thanks,
Adrian

haha20001
April 19th, 2005, 05:25
I have met the same question

Ricardo Narvaja
April 19th, 2005, 06:45
i have no problem with vprotector (is a multithread and multiprocess jeje) what is your problem?

Ricardo Narvaja

haha20001
April 24th, 2005, 19:50
I want to run trace another thread,instead of main thread,but i can't switch to the thread in olly.

haha20001
April 24th, 2005, 19:52
when i run trace a program,olly tell me the thread exited,but the program is always runing,and now how can trace another thread.

Ricardo Narvaja
April 25th, 2005, 13:47
When the program stop in CreateThread look the starting adress of the trhead, and put a BP in this adress, continue tracing the main thread, and the program will switch automatically and stop in the new thread in the BP.

In this moment go to VIEW-THREAD and change to the main thread and doble click in it.

The cpu change showing the main thread sttoped, but if you look the stack, looking down you can look the adress (RETURN TO XXXXX) put a BP in the point of return (always in the exe image)

and continue tracing the new tread when the program change to the old thread, will stop in the bp, and in this moment go and put in the return point of the new thread a BP and continue working without problem.

Ricardo Narvaja