Log in

View Full Version : Setting Multiple Breakpoints


DMCSTGN
June 12th, 2005, 10:11
Hello, i am knew here and am not very good with olly.

I was just wondering if there was a way to select multiple (expressions, i think they are called (or if that is wrong the things inside the cpu main thread window))

ANd then set a breakpoint for that selection

its very tedious to have to keep on hitting the arrow down key and then f2 to set one breakpoint, so i am wondering if i could select multiple items and breakpoint them all at once

sorry if this sounds really stupid, i just started using olly yeaterday

thanks for any help

blabberer
June 12th, 2005, 11:13
well there is no point in setting breakpoints on every line of command it is more or less redundant to do it

assume you have this code

mov eax,0
mov ebx,0
mov ecx,10
xor edx,edx
label:
add edx,1
cmp edx,ecx
jne label

only point of exit there is the next command after jne so if you set break point on all commands you are wasting resource and your time

so select some exit points and set break points on them

for example you wish to set break points on all jne's
ok then you right click on cpu window search for all commands type jnz const
ollydbg will pop up a new window with all the jnz commands in the selected module
if you right click in that window you will see you can set break points on all thos jnz at one go
simple

in ollydbg everything is context sensitive so keep on right clicking everywhere to find all the easter eggs

DMCSTGN
June 12th, 2005, 11:35
ok, thanks alot. That made a little bit of sense!

Ok, i have another question, it might now be possible but here it goes.

Is it possible to preform an action in a program (one that olly is attached to) and then see what expression (i guess they are called expressions) it affects? Any help on this question would also be really appreciated! Thx in advanced!