 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
trm Newbie cheater
Reputation: 0
Joined: 27 Jan 2010 Posts: 10
|
Posted: Thu Jan 28, 2010 12:28 am Post subject: Break & Trace Multiple Threads |
|
|
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
|
|
Back to top |
|
 |
Psy Grandmaster Cheater Supreme
Reputation: 1
Joined: 27 Mar 2008 Posts: 1366
|
Posted: Thu Jan 28, 2010 3:42 am Post subject: |
|
|
For what reason would want to do this, if you don't mind me asking?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25802 Location: The netherlands
|
Posted: Thu Jan 28, 2010 6:21 am Post subject: |
|
|
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 |
|
 |
trm Newbie cheater
Reputation: 0
Joined: 27 Jan 2010 Posts: 10
|
Posted: Thu Jan 28, 2010 11:12 am Post subject: |
|
|
Psy wrote: | For what reason would want to do this, if you don't mind me asking?  |
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 ...
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
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 |
|
 |
|
|
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
|
|