| View previous topic :: View next topic |
| Author |
Message |
Dave_Scream Cheater
Reputation: 0
Joined: 06 Dec 2009 Posts: 36
|
Posted: Mon Jun 13, 2011 4:52 am Post subject: How to backtrace with stop condition (LUA) ? |
|
|
Hi,
I found some target code, but it used for many other values too. I need to make backtrace like described here http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles/225-basic-encryptions-debugging-backtracing-and-some-info-on-the-stack
so I need to set breakpoint with stopcondition.
How to setup stopcondition for example to stop and trace only if EAX==071BEDE0 ??
my value accessed by a command:
add eax,04
so to find the parent function, that make this call, I need to set "Break and Trace instructions" on this "add eax,04" command in debugger.
but i need to see trace not for all situations, but only when eax==071BEDE0 - it address of my value.
so im tryed to setup stopcondition eax==071BEDE0 or even impossible eax<0 - and get fault... trace appear.
how to setup stopcondition?
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Mon Jun 13, 2011 5:30 am Post subject: |
|
|
EAX == 0x071BEDE0
_________________
|
|
| Back to top |
|
 |
Dave_Scream Cheater
Reputation: 0
Joined: 06 Dec 2009 Posts: 36
|
Posted: Mon Jun 13, 2011 7:14 am Post subject: |
|
|
| Geri wrote: | | EAX == 0x071BEDE0 |
why if I go into Trace after trace gone, expand all and look at first command from where trace stats, the register EAX is not 0x071BEDE0 as I type in stopcondition?
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Mon Jun 13, 2011 7:22 am Post subject: |
|
|
You need to set the condition before the program would reach the breakpoint, otherwise it will surely not work.
_________________
|
|
| Back to top |
|
 |
Dave_Scream Cheater
Reputation: 0
Joined: 06 Dec 2009 Posts: 36
|
Posted: Mon Jun 13, 2011 8:57 am Post subject: |
|
|
| Geri wrote: | | You need to set the condition before the program would reach the breakpoint, otherwise it will surely not work. |
dosent work for me:
http://www.youtube.com/watch?v=1jVrrFFCOT0
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Mon Jun 13, 2011 11:40 am Post subject: |
|
|
You are changing the stop condition for the tracing. This means that when the condition will be true, the tracing will stop.
You need to change the breakpoint condition.
Set break and trace on the code, then when it is green already, right-click on the code and use the "Set/Change" break condition. It doesn't hurt to pause the game or something until you set the condition.
_________________
|
|
| Back to top |
|
 |
|