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 


How does CE get the address of a breakpoint?

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

Joined: 31 Aug 2018
Posts: 3

PostPosted: Sat Sep 01, 2018 12:29 pm    Post subject: How does CE get the address of a breakpoint? Reply with quote

RIP only gives address of the next instruction. How does CE gets the (real) address before this instruction?

I've tried looking at the source but I got lost at this line:

Code:
debugeventhandler.pas
TDebuggerthread(debuggerthread).Synchronize(TDebuggerthread(debuggerthread), foundCodeDialog_AddRecord);


Lazarus steps over it and CE marks the bp as being handled but I still cannot see the "real" address. Could someone please point me to the source where the magic happens?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 373

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

PostPosted: Sat Sep 01, 2018 12:49 pm    Post subject: Reply with quote

it disassembles the previous instructions until it has the best guess what the RIP actually is. (it's still a guess)
_________________
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
Snowflag
How do I cheat?
Reputation: 0

Joined: 31 Aug 2018
Posts: 3

PostPosted: Sat Sep 01, 2018 1:17 pm    Post subject: Reply with quote

Ah okay. I thought as clever as you are there migh be a super secret way to do this and you figured it out.

Could you tell me where this happens in code (which file / method or even better a line number?) I would like to take a look at and learn from it as my own way, which works the same, sometimes not work as good as CE.
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 Source 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