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 


debugger_onBreakpoint() - Get address of hit breakpoint

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
MulleDK19
Cheater
Reputation: 0

Joined: 12 Aug 2012
Posts: 25
Location: Denmark

PostPosted: Tue Sep 15, 2015 2:37 pm    Post subject: debugger_onBreakpoint() - Get address of hit breakpoint Reply with quote

OLD PROBLEM (Read EDIT below):
I'm trying to set a data breakpoint using debug_setBreakpoint(PatchPoint, bptWrite);

However, debugger_onBreakpoint() is never executed with neither bptAccess nor bptWrite.

I can see the breakpoint being set in the disassembler view.

Everything works, if I remove the breakpoint, then put the breakpoint again manually at the same spot.








EDIT: Okay, it works if I use debug_setBreakpoint(PatchPoint, 1, bptWrite); instead.

So another question. How do I retrieve which address the breakpoint is at? For bptExecute I can simply check RIP/EIP, but how do I check it with data breakpoints (Without having to know the instruction that accessed it)?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Sep 15, 2015 3:11 pm    Post subject: Reply with quote

That's fixed for next version (You can add a function per breakpoint)

For now though, you'll have to figure this out yourself(disassemble the previous instruction , parse, and check the registers), or limit to one such breakpoint at a time

_________________
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
MulleDK19
Cheater
Reputation: 0

Joined: 12 Aug 2012
Posts: 25
Location: Denmark

PostPosted: Tue Sep 15, 2015 6:44 pm    Post subject: Reply with quote

Dark Byte wrote:
That's fixed for next version (You can add a function per breakpoint)

For now though, you'll have to figure this out yourself(disassemble the previous instruction , parse, and check the registers), or limit to one such breakpoint at a time


Okay, thanks.

Any idea when this 'next' version will be out?
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 Lua Scripting 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