Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Break & Trace Multiple Threads

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
trm
Newbie cheater
Reputation: 0

Joined: 27 Jan 2010
Posts: 10

PostPosted: Thu Jan 28, 2010 12:28 am    Post subject: Break & Trace Multiple Threads Reply with quote

is there a way to break and trace all threads simultaneously ?
with CE, or another program ?

i want to break all threads at once, or at least 6-8 threads one after the other,
before any instructions can be executed in the other threads,
and then have CE log the instructions executed, like it normally does when using "Break and trace..."


or, if that's not possible, is there a way to freeze a process,
and then step through the instructions of only one thread, while keeping the other threads frozen ?

p.s.: a big thank you to Dark Byte for creating CE - look forward to v5.6 Wink
Back to top
View user's profile Send private message
Psy
Grandmaster Cheater Supreme
Reputation: 1

Joined: 27 Mar 2008
Posts: 1366

PostPosted: Thu Jan 28, 2010 3:42 am    Post subject: Reply with quote

For what reason would want to do this, if you don't mind me asking? Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25802
Location: The netherlands

PostPosted: Thu Jan 28, 2010 6:21 am    Post subject: Reply with quote

why breaking all threads is useless:
thread 1 is inside directx
thread 2 is inside kernel32.dll executing a function there
thread 3 is waiting for a event to be finished
thread 4 is in the music play code
thread 5 is waiting for commands

as you see, not a single thread is doing anything of interest


as for freezing all threads while debugging, that's the way windows does it normally. When a thread breaks, it suspends all other threads until the thread is continued again. Of course, depending on the thread scheduler in windows, the other threads might have executed millions of instructions between one single step of the thread you are debugging. There's not much to do about that

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
trm
Newbie cheater
Reputation: 0

Joined: 27 Jan 2010
Posts: 10

PostPosted: Thu Jan 28, 2010 11:12 am    Post subject: Reply with quote

Psy wrote:
For what reason would want to do this, if you don't mind me asking? Smile

well, i hadn't planned on going into detail, lest you should say something like ::
Psy wrote:
Keep this on-topic, IE. gamehacking relating. Not application unpacking/cracking/etc.

however, since you ask ... Wink

my theory is that Xlive.dll creates one or more threads whose only routine(s) is to check if a debugger is present.

breaking only one thread, then manually tracing through it does not prevent a second or third thread from forcing the application to close, since, as i understand it, different instructions take different numbers of clock cycles to execute, and as DB said ::
Dark Byte wrote:
depending on the thread scheduler in windows, the other threads might have executed millions of instructions between one single step of the thread you are debugging.


if it is not possible to prevent instructions from being executed on others threads, while tracing one, then you can see how being able to break, trace, and log all instructions on all threads might be useful Smile

edit :: p.s.: forgot to mention that i do not play online / go online with my games - i'm an introvert like that >__>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites