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 


call stack and debugging

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
drdorianwhite
How do I cheat?
Reputation: 0

Joined: 24 Dec 2011
Posts: 9

PostPosted: Sat Dec 24, 2011 11:53 am    Post subject: call stack and debugging Reply with quote

I'm novice to ce but wondering if I even need to use Olly anymore for reversing for games if ce has all the features i need.

I'm trying to locate the call stack in the debugger. Where is this located?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat Dec 24, 2011 1:23 pm    Post subject: Reply with quote

when single stepping in the bottom right of memoryview (right of the hexview). Rightclick for different kind of views (normal stacktrace, dword view, modules only)

When using stuff like find what accesses the S button will show the stack at the time of the capture

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
drdorianwhite
How do I cheat?
Reputation: 0

Joined: 24 Dec 2011
Posts: 9

PostPosted: Sat Dec 24, 2011 3:12 pm    Post subject: Reply with quote

I basically wanted to know what is the easiest way to trace backwards through the call stack...for instance, I used the "find what accesses" to get a an instruction im interested in. I then want to know where the register gets its value. the register is getting it from the ECX register early on, from fastcall convention, so I want to go to the higher level function to see how that value is passed and where it came from originally.

So, I guess I just want to know, how can I step out or upwards?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat Dec 24, 2011 3:30 pm    Post subject: Reply with quote

The default stacktrace view, the first line is what called the function you are in

Alternatvely, if you're on 32-bit and use kernelmode debug you can enable the last branch recording feature with lua and on breakpoint call the functions that show you the jumps and calls that lead it to the breakpoint (min 4, max 16 depending on cpu)

_________________
Tools give you results. Knowledge gives you control.

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

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Sat Dec 24, 2011 4:37 pm    Post subject: Reply with quote

There are many ways to find the calling function in CE.

Manual debugging:
1. Look at stackview.
2. Use Execute till return... (Shift+FCool while debugging.

Auto debugging:
1. Press on the S button to view the stack.
2. Use break and trace and check in the tree where is the debugged function returning.

And there was more in my head but now I forgot all the possibilities. Anyway there are more solutions as you see.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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