Log in

View Full Version : Break/pause on "unhit" instruction?


yeryry
February 13th, 2005, 03:54
Hi

Is there a way to break or pause execution on an "unhit" instruction?
What I mean is this...
I mark some routine for hit trace.. Execute the program with some options set..
I get nice red marks on all executed lines.
Now, I change something in debugged program so the routine is called again...
I would like animation or execution to pause/stop when an "unhit" instruction is executed.. ie, a line that doesn't already have a red mark.
This would be wherever the flow of the program starts to differ from last time.. Would be very useful to be able to find this easily.
Is there a way to do this?
Or can this be done somehow using run trace instead of hit trace?

Thanks

blabberer
February 13th, 2005, 06:59
well when you run hit trace and after all the markers are made
if you right click you will see a context menu trace hit

right click search for --->trace hit
now when you are there you select all those that have markers and
remove them out of selection
to find the next trace hit use ctrl+L remove them from trace
if you are bored write a script to automate it with olly script

and now you run trace again
and what ever new markers are set are those which werent hit the first time its simple annd elegant isnt it

now if there are new markers you can analyse and set new break points
with f2 i would presume
have fun