View previous topic :: View next topic |
Author |
Message |
Shame How do I cheat?
Reputation: 0
Joined: 23 Oct 2018 Posts: 4 Location: USA
|
Posted: Tue Oct 23, 2018 9:27 am Post subject: LUA Breakpoint issue |
|
|
hello i want to know something about lua breakpoint(complex)
i want to know how to set a breakpoint when there is a certain address in the register for example if edx==0x0000 then i don't want it to break and break if anything else is in the edx register..
thanks and waiting for your kind help
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Tue Oct 23, 2018 9:34 am Post subject: |
|
|
is this a 32-bit or 64-bit target?
anyhow, in the breakpoint handler for that breakpoint do this code:
Code: |
if EDX==0 then
debug_continueFromBreakpoint(co_run)
return 1 --continue
else
return 0 --break
end
|
_________________
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 |
|
 |
Shame How do I cheat?
Reputation: 0
Joined: 23 Oct 2018 Posts: 4 Location: USA
|
Posted: Tue Oct 23, 2018 9:47 am Post subject: |
|
|
Dark Byte wrote: | is this a 32-bit or 64-bit target?
anyhow, in the breakpoint handler for that breakpoint do this code:
Code: |
if EDX==0 then
debug_continueFromBreakpoint(co_run)
return 1 --continue
else
return 0 --break
end
|
|
it's still breakking with the same register .. any help ?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Tue Oct 23, 2018 10:05 am Post subject: |
|
|
is your breakpoint function defined in the setBreakboint routine or in the global debugger_onBreakpoint ?
_________________
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 |
|
 |
Shame How do I cheat?
Reputation: 0
Joined: 23 Oct 2018 Posts: 4 Location: USA
|
Posted: Tue Oct 23, 2018 10:19 am Post subject: |
|
|
Dark Byte wrote: | is your breakpoint function defined in the setBreakboint routine or in the global debugger_onBreakpoint ? |
umm how do i know that ? if i understand what you say then i first breakpoint the function then set the condition it if that's what you mean
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Tue Oct 23, 2018 10:30 am Post subject: |
|
|
ah nvm, I misread your question. I thought you where using lua to set the breakpoint as well, but you're talking about the breakpoint condition
in that case
complex:
or easy:
Is the target is 64-bit, then change it to RDX
_________________
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 |
|
 |
Shame How do I cheat?
Reputation: 0
Joined: 23 Oct 2018 Posts: 4 Location: USA
|
Posted: Tue Oct 23, 2018 10:32 am Post subject: |
|
|
Dark Byte wrote: | ah nvm, I misread your question. I thought you where using lua to set the breakpoint as well, but you're talking about the breakpoint condition
in that case
complex:
or easy:
Is the target is 64-bit, then change it to RDX |
thank you very much
|
|
Back to top |
|
 |
|